net: stmmac: call xpcs_config_eee_mult_fact()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 10 Feb 2025 10:53:50 +0000 (10:53 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Feb 2025 21:42:51 +0000 (13:42 -0800)
Arrange for stmmac to call the new xpcs_config_eee_mult_fact() function
to configure the EEE clock multiplying factor. This will allow the
removal of the xpcs_config_eee() calls in the next patch.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1thRQE-003w76-3C@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c

index 0c7d81ddd4406d28dfc47cb87ff507e5c0bd54ce..7c0a4046bbe353b487a9e36567e39b1b625a5acd 100644 (file)
@@ -524,6 +524,8 @@ int stmmac_pcs_setup(struct net_device *ndev)
        if (ret)
                return dev_err_probe(priv->device, ret, "No xPCS found\n");
 
+       xpcs_config_eee_mult_fact(xpcs, priv->plat->mult_fact_100ns);
+
        priv->hw->xpcs = xpcs;
 
        return 0;