Skip to content

Commit

Permalink
r8169: use new helper phy_advertise_eee_all
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and Jakub Kicinski committed Feb 7, 2024
1 parent b646912 commit 7cc0187
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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() */
Expand Down

0 comments on commit 7cc0187

Please sign in to comment.