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

r8169: use same RTL8111EVL green settings as in vendor driver

Adjust the code to use the same green settings as in the latest
vendor driver.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Heiner Kallweit and committed by
David S. Miller
b399a394 1814d6a8

+5
+5
drivers/net/ethernet/realtek/r8169.c
··· 3810 3810 rtl_w0w1_phy(tp, 0x19, 0x0001, 0x0000); 3811 3811 rtl_w0w1_phy(tp, 0x10, 0x0400, 0x0000); 3812 3812 rtl_writephy(tp, 0x1f, 0x0000); 3813 + rtl_writephy(tp, 0x1f, 0x0005); 3814 + rtl_w0w1_phy(tp, 0x01, 0x0100, 0x0000); 3815 + rtl_writephy(tp, 0x1f, 0x0000); 3816 + /* soft-reset phy */ 3817 + rtl_writephy(tp, MII_BMCR, BMCR_RESET | BMCR_ANENABLE | BMCR_ANRESTART); 3813 3818 3814 3819 /* Broken BIOS workaround: feed GigaMAC registers with MAC address. */ 3815 3820 rtl_rar_exgmac_set(tp, tp->dev->dev_addr);