Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: a2928d28643e ("r8169: use paged versions of phylib MDIO access functions")
Tested-by: Thomas Voegtle <tv@lio96.de>
Signed-off-by: Thomas Voegtle <tv@lio96.de>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Thomas Voegtle and committed by
David S. Miller
1a03bb53 89099d85

+2 -2
+2 -2
drivers/net/ethernet/realtek/r8169_main.c
··· 3251 3251 3252 3252 ret = phy_read_paged(tp->phydev, 0x0a46, 0x13); 3253 3253 if (ret & BIT(8)) 3254 - phy_modify_paged(tp->phydev, 0x0c41, 0x12, 0, BIT(1)); 3254 + phy_modify_paged(tp->phydev, 0x0c41, 0x15, 0, BIT(1)); 3255 3255 else 3256 - phy_modify_paged(tp->phydev, 0x0c41, 0x12, BIT(1), 0); 3256 + phy_modify_paged(tp->phydev, 0x0c41, 0x15, BIT(1), 0); 3257 3257 3258 3258 /* Enable PHY auto speed down */ 3259 3259 phy_modify_paged(tp->phydev, 0x0a44, 0x11, 0, BIT(3) | BIT(2));