1 From 5cb409b3960e75467cbb0a8e1e5596b4490570e3 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Thu, 10 Oct 2024 14:07:39 +0100
4 Subject: [PATCH 5/5] net: phy: realtek: clear 1000Base-T link partner
7 Clear 1000Base-T link partner advertisement bits in Clause-45
8 read_status() function in case auto-negotiation is disabled or has not
11 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
12 Link: https://patch.msgid.link/9dc9b47b2d675708afef3ad366bfd78eb584d958.1728565530.git.daniel@makrotopia.org
13 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
15 drivers/net/phy/realtek.c | 4 ++++
16 1 file changed, 4 insertions(+)
18 --- a/drivers/net/phy/realtek.c
19 +++ b/drivers/net/phy/realtek.c
20 @@ -1026,6 +1026,10 @@ static int rtl822x_c45_read_status(struc
24 + if (phydev->autoneg == AUTONEG_DISABLE ||
25 + !genphy_c45_aneg_done(phydev))
26 + mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, 0);
28 /* Vendor register as C45 has no standardized support for 1000BaseT */
29 if (phydev->autoneg == AUTONEG_ENABLE) {
30 val = phy_read_mmd(phydev, MDIO_MMD_VEND2,