Skip to content

Commit 031a239

Browse files
hkallweitkuba-moo
authored andcommitted
r8169: switch to new function phy_support_eee
Switch to new function phy_support_eee. This allows to simplify the code because data->tx_lpi_enabled is now populated by phy_ethtool_get_eee(). Signed-off-by: Heiner Kallweit <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c786459 commit 031a239

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,6 @@ static int rtl8169_get_eee(struct net_device *dev, struct ethtool_keee *data)
20792079
return ret;
20802080

20812081
data->tx_lpi_timer = r8169_get_tx_lpi_timer_us(tp);
2082-
data->tx_lpi_enabled = data->tx_lpi_timer ? data->eee_enabled : false;
20832082

20842083
return 0;
20852084
}
@@ -5174,7 +5173,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
51745173

51755174
tp->phydev->mac_managed_pm = true;
51765175
if (rtl_supports_eee(tp))
5177-
phy_advertise_eee_all(tp->phydev);
5176+
phy_support_eee(tp->phydev);
51785177
phy_support_asym_pause(tp->phydev);
51795178

51805179
/* PHY will be woken up in rtl_open() */

0 commit comments

Comments
 (0)