Commit 1a03bb53 authored by Thomas Voegtle's avatar Thomas Voegtle Committed by David S. Miller

r8169: fix RTL8168g PHY init

This fixes a copy&paste error in the original patch. Setting the wrong
register resulted in massive packet loss on some systems.

Fixes: a2928d28 ("r8169: use paged versions of phylib MDIO access functions")
Tested-by: default avatarThomas Voegtle <tv@lio96.de>
Signed-off-by: default avatarThomas Voegtle <tv@lio96.de>
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89099d85
...@@ -3251,9 +3251,9 @@ static void rtl8168g_1_hw_phy_config(struct rtl8169_private *tp) ...@@ -3251,9 +3251,9 @@ static void rtl8168g_1_hw_phy_config(struct rtl8169_private *tp)
ret = phy_read_paged(tp->phydev, 0x0a46, 0x13); ret = phy_read_paged(tp->phydev, 0x0a46, 0x13);
if (ret & BIT(8)) if (ret & BIT(8))
phy_modify_paged(tp->phydev, 0x0c41, 0x12, 0, BIT(1)); phy_modify_paged(tp->phydev, 0x0c41, 0x15, 0, BIT(1));
else else
phy_modify_paged(tp->phydev, 0x0c41, 0x12, BIT(1), 0); phy_modify_paged(tp->phydev, 0x0c41, 0x15, BIT(1), 0);
/* Enable PHY auto speed down */ /* Enable PHY auto speed down */
phy_modify_paged(tp->phydev, 0x0a44, 0x11, 0, BIT(3) | BIT(2)); phy_modify_paged(tp->phydev, 0x0a44, 0x11, 0, BIT(3) | BIT(2));
......
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