Commit d0db136f authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

r8169: use r8168d_modify_extpage in rtl8168f_config_eee_phy



Use r8168d_modify_extpage() also in rtl8168f_config_eee_phy() to
simplify the code.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f227543
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -2324,11 +2324,7 @@ static void rtl8168f_config_eee_phy(struct rtl8169_private *tp)
{
{
	struct phy_device *phydev = tp->phydev;
	struct phy_device *phydev = tp->phydev;


	phy_write(phydev, 0x1f, 0x0007);
	r8168d_modify_extpage(phydev, 0x0020, 0x15, 0, BIT(8));
	phy_write(phydev, 0x1e, 0x0020);
	phy_set_bits(phydev, 0x15, BIT(8));
	phy_write(phydev, 0x1f, 0x0000);

	r8168d_phy_param(phydev, 0x8b85, 0, BIT(13));
	r8168d_phy_param(phydev, 0x8b85, 0, BIT(13));
}
}