From patchwork Wed Aug 28 12:10:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 823156 Delivered-To: patch@linaro.org Received: by 2002:adf:f4c1:0:b0:367:895a:4699 with SMTP id h1csp754869wrp; Wed, 28 Aug 2024 05:12:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV9JLekxR4IpkQA8geIdafjRbYDiKRp8glOlwediyRqUr8XEo5Ps07bsQNu4KxbgMH0BlzffQ==@linaro.org X-Google-Smtp-Source: AGHT+IGkoxCH947uQM1ik3P2Q4ntP/3dcV3tVZcNgAZ0/mlT/Xj917vnoIL6A5pU5q4+78fTLH6q X-Received: by 2002:a2e:bea6:0:b0:2ef:2df7:3d9a with SMTP id 38308e7fff4ca-2f55b64019emr16284971fa.9.1724847128495; Wed, 28 Aug 2024 05:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724847128; cv=none; d=google.com; s=arc-20240605; b=BJ+GyALCHVeCi2CyNehj/Yt04uSMeyLpoS69PYD2eC4vHa0+VAa3KwVbQ+KJhPGyGS Pfayo+sQEblaql2vN2bcdvDv+QY9ib3tvSf9qdrNtOnhOhqSQF4lAGLqsV9ZmJTIEf+s SP6eI8Etywj3SYkYnirW6qM+ZcVciOGbA13mouQ7ck02ayg4RmMM8NfEby2QO6XzXVCW qvREvEHO8bV6qT+uzteYribN2a9iQG+sxF2GGMwgPnMEcnTpyPVNZeak1ez7AZDcPw6H pyhpyFJ+MhUD52sMwa6Z2I09bjK4sw9kjsYacgQtWTP97WOe+QZ0au5ndSqyzt3XpqOH L+2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dT3eVdcZ7+yTL3gKrjedSQI9zhitj9PAgp3LECTzRy0=; fh=UG3KG95DITEK042in26aCsZbS6wZ4zeHMFYjTaoW3HQ=; b=XisTrC2QX+p7rwDHkd4BwzMZSHZmiHBTmBGd0D1DPFfxC+SLKU+25GAwWWgLwGhzxr aj21SoEpftkjUVusf5h1JvxscwwaEyN8kRcPc66Djza5A2fGxETXBKG5IL8u0F2j0gyE GaTb1YWVmJnJniqeneg6eogBZg9ZlJ/pnXQlb6B33EigoutnKAaXcilf4sW5U0d6+Hqi PUvknsg/RRcNsg9bYOE4nmLY7b4ToQrokXn7ZTNyHh9AHv76QFXMwU4d2Bx6XSLnT7JK VRr8jd8nWurjUD8esqq9QkfoQBZl5mJ9ymuNIEFhUEpRIAi5/8MixkbWwzitstgdPkbi eQnA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzYaQyxw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 38308e7fff4ca-2f4048e9088si44527091fa.630.2024.08.28.05.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 05:12:08 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzYaQyxw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BDBBA88AA7; Wed, 28 Aug 2024 14:10:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HzYaQyxw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D5D288B40; Wed, 28 Aug 2024 14:10:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 91F9988874 for ; Wed, 28 Aug 2024 14:10:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4281c164408so57192675e9.1 for ; Wed, 28 Aug 2024 05:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724847050; x=1725451850; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dT3eVdcZ7+yTL3gKrjedSQI9zhitj9PAgp3LECTzRy0=; b=HzYaQyxwGKjuUxgzIiFzL7bxPMUUDMJ8oIpoQG+FtIAlTXtrwK2YIO5xgjNLgO89+3 SMrRBSXiHJPq/WaE5NAIQo6pX3zQEHz0aKu3LsLsCfnl8UtV1VnRnPuu8CltM1sjz6VG 5k4UzxK8jw1IOq6lomkSHWCEgZDds0zIvdVH1XC+7yCfOuRqkzhStZlWxTf338IXFEbt uJSkGQi2YMLEkxjABTten4HjlSWlaQnkczklou5abSnINWo5TkCZvnL3eL1rJ30fVhcO lwzMIkxb0PnOkXhzhoS05ELFK/4y4Aoa8HwhOlQb7dO53swco23WVHWptsJWknAr1ph8 Ss5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724847050; x=1725451850; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dT3eVdcZ7+yTL3gKrjedSQI9zhitj9PAgp3LECTzRy0=; b=BzWiPhe5o0mbYmeFIqpOwNivCs7s+Z2sNmDPFMCdlv9Hc6KPpoQN1vG8BXuLNhJrs4 hpW7xw64P0c2sNxF7Yu5rHf/707x0NP0OVGFoOmSauiz3EsA68DVxsrGoxu3WbIV2r7o 1yiUHdxqPdtNQc/4Q9vlPGNuna+vbv1iPXOx6yr8kBpMPFdftHGq9P8eyCnF9Mj/0+9v WyIjUnuTmXcdIfgHkVjcDpdNQiNZlyVD7ryg2JEOjwppVs7qd3QWOgH2SaZkVrCr12I/ rRoCsWd+hX1sgSk85f0XLcH33wyRmXq5620k/LYOQgXpQqtjuyVyvbZdWzDUeferpHa1 4iuQ== X-Gm-Message-State: AOJu0YzeQagJz+SWryeFvFyuj4j+6hnlii86iTmmyEp+FrMccxs6gFlc t/HavepnN5KcqdOMg/Vd6DmmLUjVlJHxuh0kLipV1EfUC1C1CyKxpInIGs7MTKBdxiD9E9BRSdh lBNi3m2i+ X-Received: by 2002:a05:600c:19cd:b0:427:ff7a:794 with SMTP id 5b1f17b1804b1-42ba6692269mr12315785e9.4.1724847049817; Wed, 28 Aug 2024 05:10:49 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:8ac3:aada:f033:985a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba639687csm19470365e9.8.2024.08.28.05.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 05:10:49 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini , Yang Xiwen , Robert Marko , Gabor Juhos , Jonas Karlman , Boon Khai Ng , Neil Armstrong Subject: [PATCH 08/13] net: ftgmac100: depend on NET Date: Wed, 28 Aug 2024 14:10:31 +0200 Message-Id: <3112cb1127580bf714f50a199b4ec9e998322202.1724846454.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean FTGMAC100 enables drivers/net/ftgmac100.c which uses PHY_INTERFACE_MODE_NCSI, which is defined only when PHY_NCSI is enabled. Therefore FTGMAC100 depends on PHY_NCSI. However adding such a dependency causes a "recursive dependency detected!" message, so add a dependency on NET instead (PHY_NCSI depends on NET). All in all, either the stack is NET and FTGMAC100 can be enabled, or it is NET_LWIP (or NO_NET) and it cannot. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 69ae7c0750..3382e533f4 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -461,6 +461,7 @@ config FTMAC100 config FTGMAC100 bool "Ftgmac100 Ethernet Support" select PHYLIB + depends on NET help This driver supports the Faraday's FTGMAC100 Gigabit SoC Ethernet controller that can be found on Aspeed SoCs (which