net: phy: realtek: Clear MDIO_AN_10GBT_CTRL_ADV10G bit
Subsystems (3)
PATCH 1/1 net: phy: realtek: Clear MDIO_AN_10GBT_CTRL_ADV10G bit
On RTL8127A connected to a link partner that advertises 10000baseT speed cannot be changed to anything other than 10000baseT as 10GbE is always advertised regardless of any setting. Fix this by clearing MDIO_AN_10GBT_CTRL_ADV10G bit in rtl822x_config_aneg()'s call to phy_modify_mmd_changed().
--- drivers/net/phy/realtek/realtek_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/phy/realtek/realtek_main.c +2 -1
@@ -1802,7 +1802,8 @@ static int rtl822x_config_aneg(struct phy_device *phydev) ret =phy_modify_mmd_changed (phydev,MDIO_MMD_VEND2 ,RTL_MDIO_AN_10GBT_CTRL ,MDIO_AN_10GBT_CTRL_ADV2_5G | -MDIO_AN_10GBT_CTRL_ADV5G , adv); +MDIO_AN_10GBT_CTRL_ADV5G | +MDIO_AN_10GBT_CTRL_ADV10G , adv);if (ret <0 )return ret; }
base-commit: 7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823
Signature · 1 line
2.54.0
Hi,
Quoted 5 lines · Jan Klos
On RTL8127A connected to a link partner that advertises 10000baseT speed cannot be changed to anything other than 10000baseT as 10GbE is always advertised regardless of any setting. Fix this by clearing
MDIO_AN_10GBT_CTRL_ADV10Gbit in rtl822x_config_aneg()'s call tophy_modify_mmd_changed().
Makes sense, this is also done as part of the C45 config_aneg sequence.
You're missing a few things process-wise :
- a Fixes tag to indicate the commit that introduced the bug
- You must CC all the relevant maintainers, including the top-level networking maintainers, use ./scripts/get_maintainers.pl to get the list
- The patch must have in the subject an indication that this targets the 'net' tree, for bugfixes, see :
https://docs.kernel.org/process/maintainer-netdev.html
Feel free to re-send a V2 (after waiting 24h), and add my review tag :
Maxime
Quoted 22 lines
Signed-off-by Jan Klos <[email protected]>--- drivers/net/phy/realtek/realtek_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/phy/realtek/realtek_main.c +2
-1@@ -1802,7 +1802,8 @@ static int rtl822x_config_aneg(struct phy_device *phydev) ret =phy_modify_mmd_changed (phydev,MDIO_MMD_VEND2 ,RTL_MDIO_AN_10GBT_CTRL ,MDIO_AN_10GBT_CTRL_ADV2_5G | -MDIO_AN_10GBT_CTRL_ADV5G , adv); +MDIO_AN_10GBT_CTRL_ADV5G | +MDIO_AN_10GBT_CTRL_ADV10G , adv);if (ret <0 )return ret; }base-commit:
7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823