aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/realtek/r8169.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index dcb8c39382e7..19f3074a0a68 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -3789,26 +3789,26 @@ static void rtl8168e_2_hw_phy_config(struct rtl8169_private *tp)
3789 rtl_writephy(tp, 0x1f, 0x0000); 3789 rtl_writephy(tp, 0x1f, 0x0000);
3790 3790
3791 /* EEE setting */ 3791 /* EEE setting */
3792 rtl_w0w1_eri(tp, 0x1b0, ERIAR_MASK_1111, 0x0000, 0x0003, ERIAR_EXGMAC); 3792 rtl_w0w1_eri(tp, 0x1b0, ERIAR_MASK_1111, 0x0003, 0x0000, ERIAR_EXGMAC);
3793 rtl_writephy(tp, 0x1f, 0x0005); 3793 rtl_writephy(tp, 0x1f, 0x0005);
3794 rtl_writephy(tp, 0x05, 0x8b85); 3794 rtl_writephy(tp, 0x05, 0x8b85);
3795 rtl_w0w1_phy(tp, 0x06, 0x0000, 0x2000); 3795 rtl_w0w1_phy(tp, 0x06, 0x2000, 0x0000);
3796 rtl_writephy(tp, 0x1f, 0x0004); 3796 rtl_writephy(tp, 0x1f, 0x0004);
3797 rtl_writephy(tp, 0x1f, 0x0007); 3797 rtl_writephy(tp, 0x1f, 0x0007);
3798 rtl_writephy(tp, 0x1e, 0x0020); 3798 rtl_writephy(tp, 0x1e, 0x0020);
3799 rtl_w0w1_phy(tp, 0x15, 0x0000, 0x0100); 3799 rtl_w0w1_phy(tp, 0x15, 0x0100, 0x0000);
3800 rtl_writephy(tp, 0x1f, 0x0002); 3800 rtl_writephy(tp, 0x1f, 0x0002);
3801 rtl_writephy(tp, 0x1f, 0x0000); 3801 rtl_writephy(tp, 0x1f, 0x0000);
3802 rtl_writephy(tp, 0x0d, 0x0007); 3802 rtl_writephy(tp, 0x0d, 0x0007);
3803 rtl_writephy(tp, 0x0e, 0x003c); 3803 rtl_writephy(tp, 0x0e, 0x003c);
3804 rtl_writephy(tp, 0x0d, 0x4007); 3804 rtl_writephy(tp, 0x0d, 0x4007);
3805 rtl_writephy(tp, 0x0e, 0x0000); 3805 rtl_writephy(tp, 0x0e, 0x0006);
3806 rtl_writephy(tp, 0x0d, 0x0000); 3806 rtl_writephy(tp, 0x0d, 0x0000);
3807 3807
3808 /* Green feature */ 3808 /* Green feature */
3809 rtl_writephy(tp, 0x1f, 0x0003); 3809 rtl_writephy(tp, 0x1f, 0x0003);
3810 rtl_w0w1_phy(tp, 0x19, 0x0000, 0x0001); 3810 rtl_w0w1_phy(tp, 0x19, 0x0001, 0x0000);
3811 rtl_w0w1_phy(tp, 0x10, 0x0000, 0x0400); 3811 rtl_w0w1_phy(tp, 0x10, 0x0400, 0x0000);
3812 rtl_writephy(tp, 0x1f, 0x0000); 3812 rtl_writephy(tp, 0x1f, 0x0000);
3813 3813
3814 /* Broken BIOS workaround: feed GigaMAC registers with MAC address. */ 3814 /* Broken BIOS workaround: feed GigaMAC registers with MAC address. */