From patchwork Wed Dec 6 23:57:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 174793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4455094vqy; Wed, 6 Dec 2023 16:01:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoPo1jHEwsnGi//e3qcRbIoBOwGq799+8OOftjWfSXdP4wczDeG5GFVtBCdOAsGmVpeNy/ X-Received: by 2002:a17:90b:188d:b0:288:7c06:52e4 with SMTP id mn13-20020a17090b188d00b002887c0652e4mr1066194pjb.4.1701907313205; Wed, 06 Dec 2023 16:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907313; cv=none; d=google.com; s=arc-20160816; b=q8dcoSN7MYEJneEjbVoey+l4wm8fNQiyvfTcIaTmwHRdGqDteDAjAijTn/MXbnGPC9 HdEaypxuI7579zBDkZY3r6JqO3Z89YJ3dfaASjcmu39fs+1WMYqRLdZJzhXnYXaqbN6A 4AUmfvVKncSkYuIzQxs42VdsIB0qjAAQfPBTatiEa6NmWK7IZtcwvmO6EhygCelpm0vC V5pHd+UdS/4oydGKJMg3GmSSXZXIhsDVW9UgGv5iyXU60vVXId6X8VBQr5x9Dqf52myd ZbKDt32tPvo05Fag4xRFGgqIWHrNcvmkpQyoDnLSiYqUa740ztrMPXHKLXOLIN1KbBc6 tKgA== 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=wLw2n/+QIBoz3p532oZh6o9IUO9Ie7XX1RcGDA2Pv8M=; fh=utmrxdkgikAlLxVfQI1kldUG+rNjhrLN+3fAlOYj01s=; b=UVDe+pbcCmcgE5eX2IwruwQF7Bt2azpRcffkktyBdjEYsSzNeBYteYdeRDhMnwVS+F WXeR9l5CrF/WJEYGo4K/Q85zFzaZZB29EMrOY5GwetJwolrewZGMzXDJCZdp8Fw9H+Pg ZzxYA/niRJzmwX+kAXflAPYi9DqzW/51LqZBlTp4xm3MGtbUhoMri+5KXMyzHrAPcBqc wlKDJdxuCWoso9/kl1G/G4dtfvwLLol0YRpDvbspDSoUSLBBk8sD+mTFqfA8LG6qzGs4 wZecjEVngMG35lmyxChAyV8xb+Kg85wjlSxvkM9A7rPSyKHXCc6FZeu40MXFHG5EeXGT AkZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="fy5jm9o/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x18-20020a17090aca1200b00285a62cc148si28523pjt.134.2023.12.06.16.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:01:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="fy5jm9o/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 E612180A95B6; Wed, 6 Dec 2023 16:01:47 -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 S1441813AbjLGABN (ORCPT + 99 others); Wed, 6 Dec 2023 19:01:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441917AbjLGAAZ (ORCPT ); Wed, 6 Dec 2023 19:00:25 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1266CD68; Wed, 6 Dec 2023 16:00:30 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40a4848c6e1so4785655e9.1; Wed, 06 Dec 2023 16:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701907228; x=1702512028; 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=wLw2n/+QIBoz3p532oZh6o9IUO9Ie7XX1RcGDA2Pv8M=; b=fy5jm9o/tpuHjCmNhFrpgSWXiItoD+O9L7greFax7czsIt6myYI5tnHyrzqGZno1/D ovDLnGnAv21Ug9CTQeE+OabVduuGnal9AZ1bqweMvtZxuDeR60vddRFBea3BRhzyQwG/ k1y6yRXkIfliSvzO/HAeEJhbXGTDeGVhCkF8rk+l05lwhducVu+wi8j9AYORhXRV9D89 SP+hcGaLwrCx0LrWNWs0A7+MIKqEtaS7B82zkCkW8n0HSkQ8JHNuMg/bHR3bZqwxNWg+ DxBMOosLDxvIBo/0F212HR103iSAg+You5mxp0kEHf8nkwbQYMfss78M+xN8zgmqzm1S JB4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701907228; x=1702512028; 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=wLw2n/+QIBoz3p532oZh6o9IUO9Ie7XX1RcGDA2Pv8M=; b=sV89OZqQ4+fremdYvi1PMV9g80Uo+IIhz6JU8rvrmwgeh3jqQ0v8PlUuTcbu/0Mkkc LsE5R528RLyoStXFxAhHgucMiSAMNhE5EQlNqUr87q4awFchWVegLlcWG7dgWvwxKRJq +bGbOc1l7Meax6ffeiaqwcneBy4+zeEBsJ66XMaPMzMBJ1erdIiHagNsaXPSc/lepJF0 tOvIb/t+0p2Ai5Z2DJFB4crFjEL80HpxtjWKMjR7IY26KnAOmcnS7nUTX4WQuZ75ZUE0 6cjvwYivgVZS6OTZyqDEsctK4th4WUUq45aHMiLIc4sgi/gmaqCeGDj9iIK4nzbIYskL PTcg== X-Gm-Message-State: AOJu0Yw8mVpMJM96hlw1YrSO0WOrk+psDfSIe3fIBthj/uJcO0ehMaXc tsr7LjpSD5PqOuCXYTO7uWw= X-Received: by 2002:a05:600c:468d:b0:40b:5e4a:406a with SMTP id p13-20020a05600c468d00b0040b5e4a406amr996898wmo.138.1701907228314; Wed, 06 Dec 2023 16:00:28 -0800 (PST) Received: from localhost.localdomain (host-79-26-252-6.retail.telecomitalia.it. [79.26.252.6]) by smtp.googlemail.com with ESMTPSA id je16-20020a05600c1f9000b00405442edc69sm50280wmb.14.2023.12.06.16.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:00:28 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH v3 10/13] net: phy: at803x: make at8031 related DT functions name more specific Date: Thu, 7 Dec 2023 00:57:25 +0100 Message-Id: <20231206235728.6985-11-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231206235728.6985-1-ansuelsmth@gmail.com> References: <20231206235728.6985-1-ansuelsmth@gmail.com> MIME-Version: 1.0 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]); Wed, 06 Dec 2023 16:01:48 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784579163278672242 X-GMAIL-MSGID: 1784579163278672242 Rename at8031 related DT function name to a more specific name referencing they are only related to at8031 and not to the generic at803x PHY family. Signed-off-by: Christian Marangi --- drivers/net/phy/at803x.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index 1897030667d9..3ae15ed7d634 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -583,7 +583,7 @@ static int at803x_resume(struct phy_device *phydev) return phy_modify(phydev, MII_BMCR, BMCR_PDOWN | BMCR_ISOLATE, 0); } -static int at803x_rgmii_reg_set_voltage_sel(struct regulator_dev *rdev, +static int at8031_rgmii_reg_set_voltage_sel(struct regulator_dev *rdev, unsigned int selector) { struct phy_device *phydev = rdev_get_drvdata(rdev); @@ -596,7 +596,7 @@ static int at803x_rgmii_reg_set_voltage_sel(struct regulator_dev *rdev, AT803X_DEBUG_RGMII_1V8, 0); } -static int at803x_rgmii_reg_get_voltage_sel(struct regulator_dev *rdev) +static int at8031_rgmii_reg_get_voltage_sel(struct regulator_dev *rdev) { struct phy_device *phydev = rdev_get_drvdata(rdev); int val; @@ -610,8 +610,8 @@ static int at803x_rgmii_reg_get_voltage_sel(struct regulator_dev *rdev) static const struct regulator_ops vddio_regulator_ops = { .list_voltage = regulator_list_voltage_table, - .set_voltage_sel = at803x_rgmii_reg_set_voltage_sel, - .get_voltage_sel = at803x_rgmii_reg_get_voltage_sel, + .set_voltage_sel = at8031_rgmii_reg_set_voltage_sel, + .get_voltage_sel = at8031_rgmii_reg_get_voltage_sel, }; static const unsigned int vddio_voltage_table[] = { @@ -666,7 +666,7 @@ static int at8031_register_regulators(struct phy_device *phydev) return 0; } -static int at803x_sfp_insert(void *upstream, const struct sfp_eeprom_id *id) +static int at8031_sfp_insert(void *upstream, const struct sfp_eeprom_id *id) { struct phy_device *phydev = upstream; __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_support); @@ -710,10 +710,10 @@ static int at803x_sfp_insert(void *upstream, const struct sfp_eeprom_id *id) return 0; } -static const struct sfp_upstream_ops at803x_sfp_ops = { +static const struct sfp_upstream_ops at8031_sfp_ops = { .attach = phy_sfp_attach, .detach = phy_sfp_detach, - .module_insert = at803x_sfp_insert, + .module_insert = at8031_sfp_insert, }; static int at803x_parse_dt(struct phy_device *phydev) @@ -1519,7 +1519,7 @@ static int at8031_parse_dt(struct phy_device *phydev) } /* Only AR8031/8033 support 1000Base-X for SFP modules */ - return phy_sfp_probe(phydev, &at803x_sfp_ops); + return phy_sfp_probe(phydev, &at8031_sfp_ops); } static int at8031_probe(struct phy_device *phydev)