From patchwork Tue Sep 3 08:38:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 1979910 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=SU8eWLyx; 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 4WyfG82GbTz1yZ9 for ; Tue, 3 Sep 2024 18:40:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 48FDF88D06; Tue, 3 Sep 2024 10:39:02 +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="SU8eWLyx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2439888CFB; Tue, 3 Sep 2024 10:39:00 +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-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 3F8C288CEB for ; Tue, 3 Sep 2024 10:38:58 +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-x32a.google.com with SMTP id 5b1f17b1804b1-42bbbff40bbso33100155e9.2 for ; Tue, 03 Sep 2024 01:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352737; x=1725957537; 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=9Y5IVVMRA6huUAqoPdum8k+WQjyk5hjB1KqdHDqrcgI=; b=SU8eWLyxJ2vJrWl6isECH3Fr0p8WnrfTXuvN/U5OC7++zPFz72KEqHELyzl59xQ0tM ZNYOZAugNld/d5u2I6F/+8kzCtev/JAOzVF+Olbn+V7XSAAPTvGMFRl2ZbredNYUY0Qp z2UGQ9/Plqjk2zkHkHZr6KUfsioJCTZb+I3ASLMklK6nGKKEAdogy0PHG3/RHQFprZXX p+diwCmKy85w8YM4hZycrsVoQSQwwEcI6raOJUndj0Gzaxi55THmpH4ulLO5PwjOAKse 6B2uDhQjB/LTnQ/DjQz4dNKyK8aEA1EgNknCHYJSMDhMw2FPtu1VxZqKpgJeHs9UlQJ0 TO9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352737; x=1725957537; 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=9Y5IVVMRA6huUAqoPdum8k+WQjyk5hjB1KqdHDqrcgI=; b=lhqZQkqzgFmkJvsVPq4Ll8WdpLUe9Y5Bmanac6JGLiYFBABX8SWEGdoXT8/DQusdCg n01AO3g6GT4trrnWdSwFckah6Lef95kn/1rdFIFvf1LwYTF2mTmenJjykBXCHgadfcGq c6lqVx2GjZlsSK5vdthEieBvspuEmmc5Ddf8YdnUVhDkCxwHg/qZ4+tGG8jL6cSf23Tf whOuPj2r7Vm/SuCJkYB2/ochLEotgq2LVOgqrq/vZRBEPROA/ahnLfBGpVgU5XV0Vn7Z zicad9YOYeW29aiz6Ary/HQWQ9S+vMWDHM8Kr7abWQGvu9GIi/nTmahRA108nZkJ1saL 1lNA== X-Gm-Message-State: AOJu0Yw5gBVEDwxbE0V3lqEau5H50SOB/k/bAsfQ/yaqjWM23x3uPRDQ y0rfJ8GZYUYNa9wyevD/K+tjYNbSEFkPqdStJi+82OeYZOwDm6+lQ8dtqbxVJm/yo9JNLPptz1J ujv3w/2a/ X-Google-Smtp-Source: AGHT+IELThtGlwO4T3qjdLqM7qotUm7lqfiNiLLjsDKrP3X5GbGloYz/W661kv20rM2WRgcEGosD/A== X-Received: by 2002:a05:600c:1ca0:b0:424:a2be:c161 with SMTP id 5b1f17b1804b1-42bbb216f26mr100644745e9.20.1725352737525; Tue, 03 Sep 2024 01:38:57 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:57 -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 , Boon Khai Ng , Neil Armstrong , Kever Yang , Robert Marko , Jonas Karlman Subject: [PATCH v3 09/16] net: ftgmac100: depend on NET Date: Tue, 3 Sep 2024 10:38:06 +0200 Message-Id: <0846c275880af61c3bf4341ca979ed8cba509cfb.1725351676.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: 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 69ae7c07508..3382e533f42 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