Commit 7cc0187e authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski

r8169: use new helper phy_advertise_eee_all

Use new helper phy_advertise_eee_all() to simplify the code.
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/ddedd82e-55da-4db5-acc6-9407c03f168c@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b6469127
......@@ -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() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment