From patchwork Fri Aug 30 10:16:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 823970 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp701197wrs; Fri, 30 Aug 2024 03:18:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVvxm4VRIvI1Si/Dl5tVTHIxJiigzPNznX68L7H5DqA/HxyKGzvZ/mOTlyoc3U9M2yZQ0e9DA==@linaro.org X-Google-Smtp-Source: AGHT+IE9zaksSusAyH2zq0Z+Rzdjm7YL5t1JiOctNWrEoUe8giWKKES8rwIbK/6fWl8SROLVT86x X-Received: by 2002:a05:6512:3089:b0:533:324a:9df6 with SMTP id 2adb3069b0e04-53546b5043cmr1618380e87.29.1725013136012; Fri, 30 Aug 2024 03:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725013135; cv=none; d=google.com; s=arc-20240605; b=IUvl58nZVvIBLx3oKdBgZm2dZ/VS4STzSUC+p/CPoZ+XgkWBpQGJ6SFG8ZUcD8OLNB ATG2UQxslRmGJDYlZowVuzWAR5U3NOspDFMwMwORDt4lNW6JupTTKuFCRo8zP7ibGkJ2 eVhV5BHEPmAs4cdeFeJdsmcYBaYBZlsXg3VeMLPqA7CucPidZCtcCSnFMJiTaOXvCuTC rZI7ajP4GMbfAjsPWe1iSHHciDrqUDYKvEVJGO3nOBVL1wSLcqdjKboUcl5MFaug0pjF Z18I4a4jcGnF2CI7r0PIwpmHUxWx5rWfZ7IysKjYdlAPCOnfdHhxBUjMIrnMr5zYjIBM hrZg== 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=O2nppkZ7lk3cUfvEJ+mophz5SDTsLLYc7GttlWMGBkU=; fh=qNBwcxOcUpzar66NoucBKGk7iiLvBdKEXK1IMzEgx9Y=; b=WVjITL2UyPtkLBogm5/1/aQcxkoRCftBrj+6/+rKXWGaZYrrSze1W4s/Lx51ViMFWS m7YUDYCuo99gYAgZSg1qxbcvpyYXB2GLllp4VLsGVG25UDXlzionSxBgNPULqF0BiFur Qx9oT0H4B5QNQaB7vtRXRJ2tXQVmMh8IgQ/yhnoYf05vIT+MHcrCFKdz/6/GiSGfODt4 dD85wcN9LvwMCjuTdd/ju7rz+3FfRToqsYRWrbskqWhjOG7MpfwBJKqsVoxkWRd13DPR 4QlUNMRf1sn8n8jvPZ4B4gX/FmgDSajXCkp6/jIl+gL0sQ2vWKG/bqabMVSMyD31G1AX 942Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IwqSgkS4; 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-a898916c942si272627166b.634.2024.08.30.03.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 03:18:55 -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=IwqSgkS4; 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 DBCEF88960; Fri, 30 Aug 2024 12:17:39 +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="IwqSgkS4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1758D889E2; Fri, 30 Aug 2024 12:17:36 +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-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 20DB18817C for ; Fri, 30 Aug 2024 12:17:34 +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-wr1-x42c.google.com with SMTP id ffacd0b85a97d-37198a6da58so1302889f8f.0 for ; Fri, 30 Aug 2024 03:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725013053; x=1725617853; 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=O2nppkZ7lk3cUfvEJ+mophz5SDTsLLYc7GttlWMGBkU=; b=IwqSgkS4xxICAyLAs5CaMotjCHXq7gk+pGItgwMiDtLV8UANjre2xM3fOcOTRNg1ac CLmQTZsZxXdjFy4+x1eVKkda2NGwgpfGuwrESsKPMqz293vpdEzicpMXXWddEJBA8ZOK yB1vjPwxA/XNRdQ1WdRAQMX3aizP+qEDBOSU3EbtJFFqlTPtGSN24sDtd2ujoHwnRvVu sdT6lry5ExI+20k4Kl6to2dR5/VgnCnYoBE61C4QdufAHYSxQDxyGBc09V64clOlk64I JXvAPA/5ewZar1P6tw3UQZgXPsHn3DQkjcORAw4sT5FIuD6PPpy+6pe7bk7S0YtZyo1E +qWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725013053; x=1725617853; 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=O2nppkZ7lk3cUfvEJ+mophz5SDTsLLYc7GttlWMGBkU=; b=m9UnjECo2AhqjviyjCS+LJel9FOn6cnxW30QZEehjuzBFafHSKzYfGe0FMVDfUtwZs 8d0ybpGIK63A+lJNtZjh6YdEcQ5f/StIQOtqQheOANN8dW7jsOnxS0iu6coep7wMpuLd Tqsqnu/Ps43d0ksQ53xpGwEXlZnEUXu0INvdfx5rTmA+u4x3aqmeO5FwohyCtieu46fw USNzgIxx4VrfCGyxh1WnlayQ51P6F06hw92bOJ6opkxS0bV4folhdRLte6XwbctwMroX zN4mCNYCCVWuBztLjxrf98vjZs3WcqYnerCYLnu2fQnNpHwCuwcKHGIJEKO37z2vX9Ul QpZg== X-Gm-Message-State: AOJu0YyMlOnGiavgLcxDDBDDks7xegn/0bxNPF4v9Hb0/PLJj/P8uPmS vqEXwnR5/I+VpQGbaNpqOc/M2ICDLwKwZA4JXZJ8Ko9QiQ+FZaOXMQLuNWpzx8vkb3j5mjHw+2K S2GOeT8Jl X-Received: by 2002:adf:f74d:0:b0:36b:3395:5363 with SMTP id ffacd0b85a97d-3749b54481emr4578966f8f.16.1725013053172; Fri, 30 Aug 2024 03:17:33 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-374b6a3d27fsm472728f8f.59.2024.08.30.03.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 03:17:32 -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 , Neil Armstrong , Jonas Karlman , Boon Khai Ng Subject: [PATCH v2 09/16] net: ftgmac100: depend on NET Date: Fri, 30 Aug 2024 12:16:52 +0200 Message-Id: <3db716e4924a9cf48feca84b327fd232c4336304.1725012294.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 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