Message ID | ddedd82e-55da-4db5-acc6-9407c03f168c@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7cc0187ea2522bae916e443e66a8952b71e667e2 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: phy: add and use helper phy_advertise_eee_all | expand |
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index c70869539..b43db3c49 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -5091,8 +5091,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp) tp->phydev->mac_managed_pm = true; if (rtl_supports_eee(tp)) - linkmode_copy(tp->phydev->advertising_eee, - tp->phydev->supported_eee); + phy_advertise_eee_all(tp->phydev); phy_support_asym_pause(tp->phydev); /* PHY will be woken up in rtl_open() */