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: 824884 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298142wrs; Tue, 3 Sep 2024 01:40:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXXLTiS5hkZGyXM8oluMj8GCIGRM/vk5p28DBBHNXwYX9wIuw36JcA9AAwYxIg08RJDITI4yg==@linaro.org X-Google-Smtp-Source: AGHT+IFx+jfQnba+Ay2nsnwdyDgvVqF07pYLKODL/D0JXzSGdouDLvcug4FGs3nDO8EQzGSkHFA4 X-Received: by 2002:a17:906:db07:b0:a86:ae95:eba3 with SMTP id a640c23a62f3a-a89a3823702mr978493166b.62.1725352830388; Tue, 03 Sep 2024 01:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352830; cv=none; d=google.com; s=arc-20240605; b=T2a1pB+6MouRpQC4072NKfLjzG854hnpqxyhzwqasRjp2CNgJlaVaKIk73mcSpVYKa juezdoxkuTE3hDFM7UIRhuuqXdPRL0YAWZ7hAv/ajzc2T9uuvl4hd2s18mnFKNMxIo9J /+hfOuTTOMo+BUhz4DRH4e5TKHcMJ/sM/Is6VQjRuHwO0bkBUcuf6itkq3vPI4R85UT3 x0AECQB8O6TnkUVCJRg5BO6/NjoWxNz4VLW75SCQonXVFoKRR6hsOH+lvLBga2dp7U2+ M9NHtXXaG2+TDv8kg8s1dcHv0ynRRbPtsiMsTpS/HFfY0QIhrjv6EW+a20ULEnz5pwul qWDw== 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=9Y5IVVMRA6huUAqoPdum8k+WQjyk5hjB1KqdHDqrcgI=; fh=N0TLk50SToLEqvzSSN3uysD9HHs9HSkWG9BvzL1ioNc=; b=WUCRdMh0w6Z4Yveicd4n9AobGe6+TAGeLyvmiyAfA+S1H9kGs2QC6rabUFIXMsJ+dD zDItob8uJE6gwzOMYUGVOPwqxyq7j3DQm1YdInqr7MRnE2FzX0pisauNVywZiCBWto+T STbGyp5+Vm6FcjtnOpahStD+xjBrz1r6YWs/4RMMVo4xKID1TpcLc+jtn0hMOp45ffkc J838JwVI5n80mq/oSgtQketIQJv+dMNfikDesL3sI/ydoH0MFQ1bTWxtBp+Mv9qMu3dN iAeKrQ1PgAoBFCfph1+80rDGU9tNcgiGGzaCNQ0eVbZfEMUunT34Oi4u7C8DUslIkMvq oU+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SU8eWLyx; 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 a640c23a62f3a-a8988f40b7esi857033166b.72.2024.09.03.01.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:30 -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=SU8eWLyx; 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 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-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