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: 1983856 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DTntYf4/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X3bfj2GXHz1y1C for ; Wed, 11 Sep 2024 20:00:29 +1000 (AEST) 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-Google-Smtp-Source: AGHT+IEigJ/QppwYHDcIOknKGncYKwJxp9Iub8ojwBNonwZtwDnrvjIKiOiZo0ChSDW1o4AgxycwkQ== 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