Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: stmmac: intel: 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.
Similarly, if SGMII is selected, the maximum speed will be 1G.
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) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1u4dIh-000dT5-Kt@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
978d13b2 cd1fafe7

-3
-3
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
··· 300 300 if (((data & SERDES_LINK_MODE_MASK) >> SERDES_LINK_MODE_SHIFT) == 301 301 SERDES_LINK_MODE_2G5) { 302 302 dev_info(priv->device, "Link Speed Mode: 2.5Gbps\n"); 303 - priv->plat->max_speed = 2500; 304 303 priv->plat->phy_interface = PHY_INTERFACE_MODE_2500BASEX; 305 304 priv->plat->mdio_bus_data->default_an_inband = false; 306 - } else { 307 - priv->plat->max_speed = 1000; 308 305 } 309 306 } 310 307