From patchwork Wed Aug 28 12:10:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 823153 Delivered-To: patch@linaro.org Received: by 2002:adf:f4c1:0:b0:367:895a:4699 with SMTP id h1csp754597wrp; Wed, 28 Aug 2024 05:11:35 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWWK+HXxPPqIX+sd3D2wwcr9+kRcIb7eA6r0bvT7Vo1am6S98Hb+KFk5V0CsJzqzdMGIIb70Q==@linaro.org X-Google-Smtp-Source: AGHT+IHJ8cY8yNA42Oah5r3EHwgBB1YgMUGYRsFwfCdI+dm/ikM1ids/+1HHkkb/HGE22ggb2oI5 X-Received: by 2002:a05:6512:110b:b0:52c:952a:67da with SMTP id 2adb3069b0e04-534387c1245mr12608015e87.55.1724847094891; Wed, 28 Aug 2024 05:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724847094; cv=none; d=google.com; s=arc-20240605; b=iu5mTB2zQmDS8wbT5xUsjWnN4SreuXx7U2cqUBDwodN5zVffJg6s4S62/a6aNl8XF/ TUvMl3S3fwbO1IgwYEQAMu+IHC19A9JtPj8qQrE10LZFRLnjaC3E+/C8UKaEVi7Fr3p4 xXjxSI+j+rTmAZ8nhZ43KexhI03mL10/sLahf9kkNxB5qFICFkrWqiAmDMMc9NUcTVEE orPK2ATX3sn3oNNNNd8eHQPlmm9C4+vTvb6c3PuH+LfAVGYfmthA6AJrhppAEWMZcC+n MfskOODV9wKqCn5GLxiH3tpB+LkOEGSuQLUFPWkDLn+ZbGOwJUt000vhH2cWX/Jq4LWt Olqg== 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=wvelrrkYuX7sWh+UqcXejJvxNMf6tKNnDRAQQwpPslM=; fh=EAnZL4IFRrLi/kZZl+bxs1QDWyO5W9ePvI/a8qBrx+4=; b=Tu//mFChkGno+tvsepbcM+MoRBYw22uqKQJMB74B3UpmP4OrGBPcHgd4Ydp/YTDIZj 2jO/an30xZ21l27/r4xLBYoucSEawy3eLyZ4HHv0xoL8sifaJa6oRA9Qaz0/t1/cWtMg nExfuvzb3GIHDjU4zZti7CqZEnZIBaEwfznGugpd+KhintM2VhZFCY+FqnAG0bvRo+tW eQqRirHib9rSxxclWYSVpdi24TSnZggGh6l24pLOea2dsiilqZws4Hn250TGH7d9Imdc JmvefanJCftWz4+yWWD5m1MUubeypsG3tPeKQBkjdSBNf8q2Cljv+g2xfXy5W4r7CDs+ pmgg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VMmwtSNp; 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 2adb3069b0e04-5334ea93cc4si4856861e87.509.2024.08.28.05.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 05:11:34 -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=VMmwtSNp; 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 A0C0C88B29; Wed, 28 Aug 2024 14:10:52 +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="VMmwtSNp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC6BE88AFB; Wed, 28 Aug 2024 14:10:49 +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-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 F3F5B88ABA for ; Wed, 28 Aug 2024 14:10:47 +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-429ec9f2155so58292885e9.2 for ; Wed, 28 Aug 2024 05:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724847047; x=1725451847; 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=wvelrrkYuX7sWh+UqcXejJvxNMf6tKNnDRAQQwpPslM=; b=VMmwtSNpbUd2rVZnnK1kHCQQpdQ7FFUSMKmlx8JflGQK4SpK1ZBL1zQHgqSRuOlS53 nHVC36xOWvh7VeErNi5TF14tPx1Q84MYxLDdfyJz+8mh+E/MA2KxP/ltO/AHTOk+iomY gTU0c/nWH60HwXjNiIImXqf5FH0wNsqvPTgsFxAA2p7QZI0RsK08UKHjXENMz+K+V/lT FY3flgZH4YeM82VLscodrWSTZRiEoTLpStUQ3N9wmVTz45sLv7eXXGCQvVRybpBrEbBz Vu8R7MqJ66DmUFr3OqkFcMCbPDaGuVPnjk0iEi/ZnyJsHXX1MKv5Q2edOnDVPMZL2Yye dMJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724847047; x=1725451847; 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=wvelrrkYuX7sWh+UqcXejJvxNMf6tKNnDRAQQwpPslM=; b=gdtpj/Qex1xvVxKKuI2Ul1rVpJtStoXu09n6D2A3XfRJRgYZr2PP4L4SNXKCuAVcyU PaegkTSf2tWQ4fFYsl1f3jEo6q4nCHz3xfxwZbSV80IA+LFP4Q1FRBDK9wzfyldeLY1+ XyGDxveh5c33CcHVwohGVrtBbwmxRiKUg1Yu8EN8vfY/AIA9+BOHWteExvTC7GFi+bTx SoFOCmjcKCU8983g1oht36UZNv6d2YwDXLoV4micreYWz007SWe0m63YyFILE7I0oel7 eQMvHl4d5u7i8fF+1LBTaKkJqYGlXRvYI5dVKFo4ZM7RC34amTmUPHPNBWVxgtD47bIP AN4A== X-Gm-Message-State: AOJu0YzceseNCbAbZkhJJnjJGKgsz9xkjAKtaeRiV7gwml92depQFSE8 jkBcmVz+UhsmsVZspbY7KWHNjqZdIfD7DA+aeFjkgLm/mh5rZ4od30HvKc/Edtqi/zfZNx/t76k b5wsAtA== X-Received: by 2002:a05:600c:354b:b0:427:d72a:6c26 with SMTP id 5b1f17b1804b1-42acc8d5290mr110587355e9.6.1724847046971; Wed, 28 Aug 2024 05:10:46 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:8ac3:aada:f033:985a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba639687csm19470365e9.8.2024.08.28.05.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 05:10:46 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini Subject: [PATCH 05/13] net: fm: call dtsec_init_phy() only when it is defined Date: Wed, 28 Aug 2024 14:10:28 +0200 Message-Id: <679e20bfd9ac3de6560e202f82452563b01fca7a.1724846454.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 dtsec_init_phy() is defined only with MII so add the proper conditional in the caller code. Signed-off-by: Jerome Forissier --- drivers/net/fm/eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 19f3f0fef0..e4ec769693 100644 --- a/drivers/net/fm/eth.c +++ b/drivers/net/fm/eth.c @@ -701,8 +701,10 @@ static int init_phy(struct fm_eth *fm_eth) supported |= SUPPORTED_2500baseX_Full; #endif +#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) && !defined(BITBANGMII) if (fm_eth->type == FM_ETH_1G_E) dtsec_init_phy(fm_eth); +#endif #ifdef CONFIG_PHYLIB #ifdef CONFIG_DM_MDIO