mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
net: phy: realtek: clear 1000Base-T link partner advertisement
Clear 1000Base-T link partner advertisement bits in Clause-45 read_status() function in case auto-negotiation is disabled or has not been completed. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/9dc9b47b2d675708afef3ad366bfd78eb584d958.1728565530.git.daniel@makrotopia.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
68d5cd09e8
commit
5cb409b396
@@ -1026,6 +1026,10 @@ static int rtl822x_c45_read_status(struct phy_device *phydev)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (phydev->autoneg == AUTONEG_DISABLE ||
|
||||||
|
!genphy_c45_aneg_done(phydev))
|
||||||
|
mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, 0);
|
||||||
|
|
||||||
/* Vendor register as C45 has no standardized support for 1000BaseT */
|
/* Vendor register as C45 has no standardized support for 1000BaseT */
|
||||||
if (phydev->autoneg == AUTONEG_ENABLE) {
|
if (phydev->autoneg == AUTONEG_ENABLE) {
|
||||||
val = phy_read_mmd(phydev, MDIO_MMD_VEND2,
|
val = phy_read_mmd(phydev, MDIO_MMD_VEND2,
|
||||||
|
|||||||
Reference in New Issue
Block a user