Commit 031a239c authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/92462328-5c9b-4d82-9ce4-ea974cda4900@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c786459f
...@@ -2079,7 +2079,6 @@ static int rtl8169_get_eee(struct net_device *dev, struct ethtool_keee *data) ...@@ -2079,7 +2079,6 @@ static int rtl8169_get_eee(struct net_device *dev, struct ethtool_keee *data)
return ret; return ret;
data->tx_lpi_timer = r8169_get_tx_lpi_timer_us(tp); data->tx_lpi_timer = r8169_get_tx_lpi_timer_us(tp);
data->tx_lpi_enabled = data->tx_lpi_timer ? data->eee_enabled : false;
return 0; return 0;
} }
...@@ -5174,7 +5173,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp) ...@@ -5174,7 +5173,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
tp->phydev->mac_managed_pm = true; tp->phydev->mac_managed_pm = true;
if (rtl_supports_eee(tp)) if (rtl_supports_eee(tp))
phy_advertise_eee_all(tp->phydev); phy_support_eee(tp->phydev);
phy_support_asym_pause(tp->phydev); phy_support_asym_pause(tp->phydev);
/* PHY will be woken up in rtl_open() */ /* 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