]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: pcs: xpcs: rename xpcs_config_usxgmii()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 17 Oct 2024 11:53:05 +0000 (12:53 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 23 Oct 2024 14:10:16 +0000 (16:10 +0200)
xpcs_config_usxgmii() is only called from the xpcs_link_up() method, so
let's name it similarly to the SGMII and 1000BASEX functions.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/pcs/pcs-xpcs.c

index 6cc658f8366c84cd78c719cd074087fa3132acf0..89ceedc0f18b8c2fe0b143860a87849f538eb855 100644 (file)
@@ -311,7 +311,7 @@ static int xpcs_read_fault_c73(struct dw_xpcs *xpcs,
        return 0;
 }
 
-static void xpcs_config_usxgmii(struct dw_xpcs *xpcs, int speed)
+static void xpcs_link_up_usxgmii(struct dw_xpcs *xpcs, int speed)
 {
        int ret, speed_sel;
 
@@ -1141,7 +1141,7 @@ static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
        struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs);
 
        if (interface == PHY_INTERFACE_MODE_USXGMII)
-               return xpcs_config_usxgmii(xpcs, speed);
+               return xpcs_link_up_usxgmii(xpcs, speed);
 
        if (interface == PHY_INTERFACE_MODE_SGMII ||
            interface == PHY_INTERFACE_MODE_1000BASEX)