Skip to content

Commit d05890c

Browse files
hkallweitdavem330
authored andcommitted
r8169: sync RTL8168f/RTL8411 hw config with vendor driver
Sync hw config for RTL8168f/RTL8411 with r8168 vendor driver. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 33b00ca commit d05890c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2953,11 +2953,11 @@ static void rtl_hw_start_8168f(struct rtl8169_private *tp)
29532953
rtl_set_def_aspm_entry_latency(tp);
29542954

29552955
rtl_eri_write(tp, 0xc0, ERIAR_MASK_0011, 0x0000);
2956-
rtl_eri_write(tp, 0xb8, ERIAR_MASK_0011, 0x0000);
2956+
rtl_eri_write(tp, 0xb8, ERIAR_MASK_1111, 0x0000);
29572957
rtl_set_fifo_size(tp, 0x10, 0x10, 0x02, 0x06);
29582958
rtl_reset_packet_filter(tp);
29592959
rtl_eri_set_bits(tp, 0x1b0, BIT(4));
2960-
rtl_eri_set_bits(tp, 0x1d0, BIT(4));
2960+
rtl_eri_set_bits(tp, 0x1d0, BIT(4) | BIT(1));
29612961
rtl_eri_write(tp, 0xcc, ERIAR_MASK_1111, 0x00000050);
29622962
rtl_eri_write(tp, 0xd0, ERIAR_MASK_1111, 0x00000060);
29632963

@@ -2986,7 +2986,7 @@ static void rtl_hw_start_8168f_1(struct rtl8169_private *tp)
29862986

29872987
rtl_ephy_init(tp, e_info_8168f_1);
29882988

2989-
rtl_w0w1_eri(tp, 0x0d4, 0x0c00, 0xff00);
2989+
rtl_eri_set_bits(tp, 0x0d4, 0x1f00);
29902990
}
29912991

29922992
static void rtl_hw_start_8411(struct rtl8169_private *tp)

0 commit comments

Comments
 (0)