Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp188589rdb; Tue, 5 Dec 2023 02:37:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvzdrjSkziwrtdqeO4DvhPpQamJh9JrnZSZ6F+omWzoCjXMUexX7ubaOzLIHPWbpPB5xiO X-Received: by 2002:a05:6358:4327:b0:16f:eb57:af02 with SMTP id r39-20020a056358432700b0016feb57af02mr3783302rwc.16.1701772677009; Tue, 05 Dec 2023 02:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701772676; cv=none; d=google.com; s=arc-20160816; b=oxDQZLgSnyMgrr31rYVlitmLauLas/wzF8c10YzZK9wrjPvUXdqr4pBjSdWotAU3Vk DpdFi7+E9Z+VrnEy110v2RbZmfqucTpu1X/p2y3lOg5f1D/oTHJIr0zGbZ3/bMLFITex EdKVKCgXgl4u2BH3O6qCHYk6+fpJ1Iv959+Mv+deyLUbZKcwEyO0PXbNOONLBvWRG/fO YDaQVLsXkWlNXVp5OJXh7gl84rGjuATB/XIRFqT11Aa98YLt8SC4hv6HwwXatKDWN3PU KtRdSeW5TC88qWu1oCLI8yACklcj3SUKWmBKClzmQpqJ9M1u9gOJBi27RgTiOaxUIAsD S5vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WIQUz6kTrVuZdOXLZo+ge/Lp9pWSfj/oMDcXilwbtBU=; fh=MsvVP0csuVm8n9Ljbw8vfDMemmhE4fqPO2s3mFvADAQ=; b=R+Kh2k3ayiIRpws+tCXvsPHUrXdcjfq7w4Y+Y7COwKXec6bB692GTTQm14yPIKk/Z8 VUA1Lr9leP6Ku1OCxsyYyX3DPbxSHnfk1QR8Fduv+Q9MhqKrwXmQ3xTuTvlff0mwzHtr FkJQyoJQsbzp2KJ0d6YEsuNm+z2066a3ZQfECz1xvuRGbZrL2iowAY/oDTcSHI0D6np+ Wctw5BDzxHdX46KVkSZAqW0WnccsZ9Eraq3rE2rM/wDVCuPbI4lArt+QmK8zTyNBQRxE 68toZv78FxIUsYFofMfSaovKvN5IgjtvAHCLHDJw+gkke+wt0ZyQrIVmpSjAeU4MK+HT bAxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="WnV/f3on"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l24-20020a63ba58000000b00589878c0a5bsi5160364pgu.71.2023.12.05.02.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 02:37:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="WnV/f3on"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 76C7880E7087; Tue, 5 Dec 2023 02:37:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346834AbjLEKgz (ORCPT + 99 others); Tue, 5 Dec 2023 05:36:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376509AbjLEKgb (ORCPT ); Tue, 5 Dec 2023 05:36:31 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3751410C2; Tue, 5 Dec 2023 02:36:24 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50bf898c43cso1911603e87.1; Tue, 05 Dec 2023 02:36:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701772583; x=1702377383; darn=vger.kernel.org; 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=WIQUz6kTrVuZdOXLZo+ge/Lp9pWSfj/oMDcXilwbtBU=; b=WnV/f3onP8/30wP4P9dVebUf5Fpw65Cn37stmcLQHJX0xG8zmEOalAdONJSika55/v B8LV6eBCROoM6/Tqm2yXZitri1dUKJwoiNvZzJth2r3ZQbgCUhNtriM52pTm80CMyfbI rbIQOEbY8IfZNtcjVLY5ucXBlTSN0nkVZopEbioZHmJq/E9PKisIxuvuSKz7FsWz/UYZ ZAm7cwVUUZCgVJnMIxSSZ1HyNNPCunqoJOW53+U1jspX27p7Fls4Qz6br203F0S1Guhd +T425g1uRQhUK1EdcBUTsiGC6D+78VGmCVw1lM/X3bS1SBQqVQPlQCH3EUQvpeKysPcH UkTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701772583; x=1702377383; 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=WIQUz6kTrVuZdOXLZo+ge/Lp9pWSfj/oMDcXilwbtBU=; b=SXUnqDtLgtSU2K3to0dGSW0FqEPzBxVpYKFJP5f3e2tVek15TIiI5ns9ULQ4pcy6RV itRsebqVQITzB1SpsbtrHVFyoK5/1hpAzpYuedmZfjJZOHPaMB055gNoqhbz9zZe4KuU Vu0e2vgKEX/aT6jPcFxaCPN1DA60CfNrTGHXYcqgTpyL7PLm4djRytuKUqJH2TdUgzBY 8qSPGicNE2h97G+pI45/+2ykJEXRykrJAN6N+kXvCDesbtHiOSK0U8KinACvsxcxAu6g 1S6T8omr3/xXDacCppaAkDcITdD8H9ykt4UEODXBAD1XDuCEMwQ5RJKR/YM/0YUMf66L W+iQ== X-Gm-Message-State: AOJu0Yx4M0U1NZK5sP7nxZR0RrAqNzW69ki2osUP0JFOxpTFnf06U3d8 LiiVfQ0U9J7f3swVxlMvEXM= X-Received: by 2002:ac2:5a50:0:b0:50b:fea2:4cdc with SMTP id r16-20020ac25a50000000b0050bfea24cdcmr583327lfn.172.1701772582731; Tue, 05 Dec 2023 02:36:22 -0800 (PST) Received: from localhost ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id c10-20020ac25f6a000000b0050c0514fdf4sm146106lfc.127.2023.12.05.02.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 02:36:22 -0800 (PST) From: Serge Semin To: Andrew Lunn , Heiner Kallweit , Russell King , Alexandre Torgue , Jose Abreu , Jose Abreu , Maxime Chevallier , Tomer Maimon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vladimir Oltean , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: Serge Semin , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 11/16] net: pcs: xpcs: Change xpcs_create_mdiodev() suffix to "byaddr" Date: Tue, 5 Dec 2023 13:35:32 +0300 Message-ID: <20231205103559.9605-12-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231205103559.9605-1-fancer.lancer@gmail.com> References: <20231205103559.9605-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 05 Dec 2023 02:37:21 -0800 (PST) The fwnode-based way of creating XPCS descriptor is about to be added. In order to have a function name distinguishable from the already implemented xpcs_create_mdiodev() method convert the later name to be xpcs_create_byaddr() which BTW better describes the method semantic in anyway. Signed-off-by: Serge Semin --- drivers/net/dsa/sja1105/sja1105_mdio.c | 2 +- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- drivers/net/pcs/pcs-xpcs.c | 6 +++--- include/linux/pcs/pcs-xpcs.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/dsa/sja1105/sja1105_mdio.c b/drivers/net/dsa/sja1105/sja1105_mdio.c index 833e55e4b961..9101079e365d 100644 --- a/drivers/net/dsa/sja1105/sja1105_mdio.c +++ b/drivers/net/dsa/sja1105/sja1105_mdio.c @@ -409,7 +409,7 @@ static int sja1105_mdiobus_pcs_register(struct sja1105_private *priv) priv->phy_mode[port] != PHY_INTERFACE_MODE_2500BASEX) continue; - xpcs = xpcs_create_mdiodev(bus, port, priv->phy_mode[port]); + xpcs = xpcs_create_byaddr(bus, port, priv->phy_mode[port]); if (IS_ERR(xpcs)) { rc = PTR_ERR(xpcs); goto out_pcs_free; diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index fa9e7e7040b9..aa75e4f1e212 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -507,7 +507,7 @@ int stmmac_xpcs_setup(struct mii_bus *bus) /* Try to probe the XPCS by scanning all addresses. */ for (addr = 0; addr < PHY_MAX_ADDR; addr++) { - xpcs = xpcs_create_mdiodev(bus, addr, mode); + xpcs = xpcs_create_byaddr(bus, addr, mode); if (IS_ERR(xpcs)) continue; diff --git a/drivers/net/pcs/pcs-xpcs.c b/drivers/net/pcs/pcs-xpcs.c index 183a37929b60..e376e255f1d3 100644 --- a/drivers/net/pcs/pcs-xpcs.c +++ b/drivers/net/pcs/pcs-xpcs.c @@ -1511,8 +1511,8 @@ static struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev, return ERR_PTR(ret); } -struct dw_xpcs *xpcs_create_mdiodev(struct mii_bus *bus, int addr, - phy_interface_t interface) +struct dw_xpcs *xpcs_create_byaddr(struct mii_bus *bus, int addr, + phy_interface_t interface) { struct mdio_device *mdiodev; struct dw_xpcs *xpcs; @@ -1535,7 +1535,7 @@ struct dw_xpcs *xpcs_create_mdiodev(struct mii_bus *bus, int addr, return xpcs; } -EXPORT_SYMBOL_GPL(xpcs_create_mdiodev); +EXPORT_SYMBOL_GPL(xpcs_create_byaddr); void xpcs_destroy(struct dw_xpcs *xpcs) { diff --git a/include/linux/pcs/pcs-xpcs.h b/include/linux/pcs/pcs-xpcs.h index 53adbffb4c0a..b11bbb5e820a 100644 --- a/include/linux/pcs/pcs-xpcs.h +++ b/include/linux/pcs/pcs-xpcs.h @@ -73,8 +73,8 @@ int xpcs_do_config(struct dw_xpcs *xpcs, phy_interface_t interface, void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces); int xpcs_config_eee(struct dw_xpcs *xpcs, int mult_fact_100ns, int enable); -struct dw_xpcs *xpcs_create_mdiodev(struct mii_bus *bus, int addr, - phy_interface_t interface); +struct dw_xpcs *xpcs_create_byaddr(struct mii_bus *bus, int addr, + phy_interface_t interface); void xpcs_destroy(struct dw_xpcs *xpcs); #endif /* __LINUX_PCS_XPCS_H */ -- 2.42.1