r8169: use new helper phy_advertise_eee_all
Use new helper phy_advertise_eee_all() to simplify the code. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/ddedd82e-55da-4db5-acc6-9407c03f168c@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b64691274f
commit
7cc0187ea2
@ -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() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user