From patchwork Fri Aug 23 13:48:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 821710 Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp386484wrh; Fri, 23 Aug 2024 06:50:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV6x/Zf2C7ABC8Ykq1+CXil/jMdmWSYQ+xxQizyEjJEsSP2sE0pqfDnYBnwyssBpd5Hn6Cs2w==@linaro.org X-Google-Smtp-Source: AGHT+IFMo2Ih3Hf5yeNmzHS/abAPtGzMk7o/M9nOFPvPibKdKKvNLtmK/gSq1W20dyWO00HyEn/E X-Received: by 2002:a05:600c:4745:b0:425:7c5f:1bac with SMTP id 5b1f17b1804b1-42acc8e16b7mr17866415e9.21.1724421007605; Fri, 23 Aug 2024 06:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724421007; cv=none; d=google.com; s=arc-20160816; b=e7Z9gs12d1etVUu0mK0rAkFya8BE3bP5IZanfoGJHo0Zr/vpxynX8Dhn72mTyVhUZw BbleXcXP79pD9RzQxMVb03uIHIkf7YKykgZ0nTu2xyjydpRVCRzpCzUUaFxb7YuPvpHu Pl1c1h5uvRwLgzbh8wUQZ8SBrA7dchlAtmkR3tAXpajyhftAXeqpQNHpxz0vGeJKxnuZ xfJzUKL/gUIwZ1VwMEchlTp3tsCgHwmRUxXqeaI4pI5WcwjHdRBMgYkaK2DyXKkFiSyo hl8sgqq6UYsPYCrFIR+rprcd5qSmWare/YMXOgP6VkhCCfAqce5OVbN5L7zlCoyis6gV Ys3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=LpbosyhlpRV3kqLXjV99Gj/U9ZaNJ/exWx7NDBToF6A=; fh=8Var754V4vNAlZWgtcLfgBHWbeRV8EJV7fDR2YeWbkc=; b=XuC+QBMfrwub+lplbUbo2fZnP+3Rk5Ptw6XLnAOh36FfqDb+UTf9cs7k78LMQ9Qixb s/gkKYClVfNqQy1rDpfduvT5cIg6dfwgr0k30rN9hnV5FS7FvOJgQShTao3/GBLlJAYf bPLi8laDH75Oi9ZbC35/xpu/wZ+SXlz8xCKt78LhTYOWV9YQKEB2MTD8ab8tsY4lcyvz /0n5GxoNoLGam72/vjO5LS6MwabOp/4oMSGyyDizWpOQ0/lv/eV780xpoM0opFvwkZIB 4s5jqWyTMwCqqmadeGOf/rdxz84f5IOB62GxCBs5iqzgRbVNhFvYDyVcNI3ytMV8pyhQ DvoA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zTs5OsjU; 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 ffacd0b85a97d-373082a9309si1477658f8f.1008.2024.08.23.06.50.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:50:07 -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=zTs5OsjU; 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 1CD1288ADC; Fri, 23 Aug 2024 15:49:21 +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="zTs5OsjU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7490E88A2C; Fri, 23 Aug 2024 15:49:18 +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-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 9711E8890A for ; Fri, 23 Aug 2024 15:49:16 +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-x42d.google.com with SMTP id ffacd0b85a97d-371b2e95c34so1101593f8f.3 for ; Fri, 23 Aug 2024 06:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724420956; x=1725025756; 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=LpbosyhlpRV3kqLXjV99Gj/U9ZaNJ/exWx7NDBToF6A=; b=zTs5OsjURMt7AD8wT2YkPl+F7IDgw/G+6QDHOhEHdagx6G6l9td+tzLNYpZEUydb0k qncUPpRE58Oys+BUqyTVkB6tGKaPHpzpGpyQ0WxUqVlc79+BMH93Ciie1kAEXV/29//N EHKT6v8GHC+/7T/YfassTq76pgFzBmR9Fro3D3p2kr4aYapWIRIeCRY4U1/0LjzM8uZp VXuOLwjT3XYOEmTx7pSBnwegDAPKS1rSSSQ5HO0AwHfgK2RLnHVspW8m329iW13kSofo lhCgxY76hyzjLx6poDqEevoEGjJsTDZ5vgNanTxFNsxGWY42QA4JKUTN+lM/y2uXNQzR yN1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724420956; x=1725025756; 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=LpbosyhlpRV3kqLXjV99Gj/U9ZaNJ/exWx7NDBToF6A=; b=S/Bt1XGs0/yfHptaGLC8SjU/jlS53wV/6PdiIhs1uR8XGKJUyHfhSTP3HR1U//xrgr IQwycHkN0zdTXBQ0XvNU8/LZ4vMiB4S1PvNnmiHZTDZ/SEJz0ZJyFUuCbZ0xjyv+3aKK zpYZMNDDGQ0w1oiAc3RdAyK9drIjUI0odF1XzdzWZwp2bRyoUx6cMWOJPioobfC+glpE Y4tbSpzim+KUCaONBeZwqJ/KS84nz+wRp+Ui5ThSfX4icACkT5ACEFuq5Q/SVH0B/D/A aJd2rAtTZJ9YHReiKsnDlrmCHjz+1gOpPnbH2rmizeEE91FeOup2ea4HQNlJZmVRWSQj cXzw== X-Gm-Message-State: AOJu0Yy5AcBu33pqBZ/isy2Ub51HQZK3euZTdaSbOM9F46T04L3ilAkK GfI2wZZjTYVr4CbTYxIDaMLevFidV1yVt5Sj52trEYuaFanDJrM6Dwy4gWS3aXcbzwHdwZNPFE3 OghmiA8Bd X-Received: by 2002:a5d:6b03:0:b0:368:12ef:92cf with SMTP id ffacd0b85a97d-373118e3735mr1701766f8f.48.1724420955799; Fri, 23 Aug 2024 06:49:15 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:e668:dc94:35c7:8064]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-373081ffb40sm4201665f8f.76.2024.08.23.06.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:49:15 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Anton Antonov , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini Subject: [PATCH v9 05/37] net: fm: call dtsec_init_phy() only when it is defined Date: Fri, 23 Aug 2024 15:48:09 +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 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 19f3f0fef07..e4ec7696939 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