Skip to content

Commit 4c30093

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: stmmac: qcom-ethqos: remove unnecessary setting max_speed
Phylink will already limit the MAC speed according to the interface, so if 2500BASE-X is selected, the maximum speed will be 2.5G. It is, therefore, not necessary to set a speed limit. Remove setting plat_dat->max_speed from this glue driver. Signed-off-by: Russell King (Oracle) <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a3d5464 commit 4c30093

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ static void qcom_ethqos_speed_mode_2500(struct net_device *ndev, void *data)
676676
{
677677
struct stmmac_priv *priv = netdev_priv(ndev);
678678

679-
priv->plat->max_speed = 2500;
680679
priv->plat->phy_interface = PHY_INTERFACE_MODE_2500BASEX;
681680
}
682681

0 commit comments

Comments
 (0)