From patchwork Wed Sep 11 09:58:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 827380 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp710679wrc; Wed, 11 Sep 2024 03:00:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWwSNwqtWJPlJzWUGCAbREiwAIjmNpb9hkDOdUokAkcMHFDyXI7lexCDS6UmK2dDpw5C6YoGA==@linaro.org X-Google-Smtp-Source: AGHT+IGRowewijWic/y7cOdYQ60wTiBJUftx4LelfAE+UyBSjSs/9N0/NDmcP+79PZFO9VPiAmzI X-Received: by 2002:a5d:452b:0:b0:374:af19:7992 with SMTP id ffacd0b85a97d-378895b91b2mr10625872f8f.7.1726048827098; Wed, 11 Sep 2024 03:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726048827; cv=none; d=google.com; s=arc-20240605; b=Y3lrHQMyxX/sBbt3xyfxZj0+7RDXFv7n+TcUuC8P26J+GaIMYImvZlyH+RJJqsqM24 UKH7Pvl8YnmZKOSIOf8qjPZ6oLwIy8lwOWUgfIajXuOQH/i5BR3lvAtP63xJ5zutqlkN nFCVVSaRzAPqPFLrMqtthjvq3Ee4kgfwXggX7NMzeT+pnnT1m0pv+xKR8ISJHtErz+EN u0MDHBDZOoNXmMyakHJ5tRxp33g0i2K3rmYwgCLwpOpvLKnGQBvzRU26cOyrpD/a5QWH hy4MasEzWtwc+9cayr5rsh2NKRcsGuNCse4Py94yRh9GDD3MLdj8ILLc9CPn65o/idOx OOYw== 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=/aZhjPOxUdNatWRE5U6jLTXqt2WXtbafXRW+DW+Zrno=; fh=S832Kiw+dlAMCM8T3nvSKCiYd6VY26hTKzCgWLWp8+M=; b=Wq7cPK6+s0TFgcKH4DXtD2MyKBKOEiH5AF8BlrK2vq3GR+y6w4q8roDITUzgQu9RqC SKBwLmNTbFG8wgQ3WkYCwATEGzwab/tMZFEyFXrNVDTTy4O8KpqhLiSUdbKPwzwKw2RX d3KN8ZLxtpFjgBrXLAMJ8cZO0sa32NEU4iXpYMx//Kso+JynGZolhcNZOQePHQjLDvwd 6XPfTutv4waBuQflWtKwlEfhcOlXIf5Cjnm+RKYXQXCYlucN443J4XZd+ac3ZXmC7T2Z NKQXIXTJmOdSD/+f4nax2lGUxnQrxV6T9iwQkFOfE8OwFbALNvxkQNi0zDHbsdGG1AiS +3LQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DTntYf4/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id ffacd0b85a97d-37895699223si3971068f8f.434.2024.09.11.03.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:00:27 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DTntYf4/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 1B76D89258; Wed, 11 Sep 2024 11:59:01 +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="DTntYf4/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9069989251; Wed, 11 Sep 2024 11:58:58 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 3EDF789250 for ; Wed, 11 Sep 2024 11:58:56 +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-x334.google.com with SMTP id 5b1f17b1804b1-42cbaf9bfdbso22445235e9.0 for ; Wed, 11 Sep 2024 02:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726048735; x=1726653535; 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=/aZhjPOxUdNatWRE5U6jLTXqt2WXtbafXRW+DW+Zrno=; b=DTntYf4/rqVNUSN4c7E3zkTQVoPVa6m+Ln/j+KVNY1Ke47OU9MGJcfvg/j6NAgF3z3 dnmH4ikBcVEGlD3bt+FVuUbAilEkXZfWr0BDDoTI45sXh1h/nBjIwKbbxYyAl6jjsrV5 JSjb0YELcRXjmsaALiQPcknb9o3nd6MNHfn3Qj79n8sJG9Iso/vV2pC0hgS9jfAa6FFR +mGC/a3Odjz591/9CWB5MRNEHbJBoeCwu2yDhA+LIFxzY2bAY6hkhHo+QmipZmZ/DT49 pxemOYZl9b6icuZJ5mDarOKcVpUFI/oCDpbt9HWUn90CJqscrE09jTNc3sHyA0LiMZbh FlCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726048735; x=1726653535; 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=/aZhjPOxUdNatWRE5U6jLTXqt2WXtbafXRW+DW+Zrno=; b=SU/9Gu63cTKGy294IDXmX2EQxbK92ES+3vMkvmX1v0ET8+hWYKiyjFBaZ/wMD1PtjC ls5+AL3acbAN2emCU+2UDF829a6XryQ85tKvJIZy1flfQoTjlmPGWQTIkhb0IwIiA8EI MFegfJDgRketengKVv3XRYOo8D2jJrgNEnOz0SCXrzqAvjRTwJ1hoEnmW+pJykIgv5qX pXQFEnS+2UYiPDYX2ZVecIJUy4m2oRyP0O02OemlIJrzMujDeWrKsdBGrQjzLrS3j0+q LqDCzdRX2ALjauYbl7PeOsTD2sdK2OYXdUM2Yt6yeIPu1o0Nr5QBFPPUTtAOUkaKhBVS b5pg== X-Gm-Message-State: AOJu0YwwHeG1zzpuKN1/sgQ0NjuA4ppalWZJkCIkfF7hbcjRykxWdJiq 4sefAgXhY5x2mOQkXu4NOG9vl7qA0aN9p7+FXpNrJRRvp4HcSWk0C62cAz/xs4pF9+a80SDDc3+ CzyRYCfOi X-Received: by 2002:a05:600c:512a:b0:42c:b34d:720c with SMTP id 5b1f17b1804b1-42cb34d7363mr84215625e9.4.1726048735444; Wed, 11 Sep 2024 02:58:55 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:7d92:535d:cd3d:335b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895649bafsm11300507f8f.7.2024.09.11.02.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 02:58:55 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Simon Glass , Joe Hershberger , Ramon Fried , Tom Rini , Yang Xiwen , Robert Marko , Gabor Juhos , Boon Khai Ng , Jonas Karlman Subject: [PATCH v4 08/15] net: ftgmac100: depend on NET Date: Wed, 11 Sep 2024 11:58:21 +0200 Message-Id: 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: Peter Robinson Reviewed-by: Simon Glass --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 6ed325517c0..e7d0ddfe25a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -468,6 +468,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