Skip to content

Commit 2cd02f2

Browse files
hkallweitkuba-moo
authored andcommitted
r8169: improve initialization of RSS registers on RTL8125/RTL8126
Replace the register addresses with the names used in r8125/r8126 vendor driver, and consider that RSS_CTRL_8125 is a 32 bit register. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://patch.msgid.link/3bf2f340-b369-4174-97bf-fd38d4217492@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 33d005b commit 2cd02f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ enum rtl8125_registers {
347347
TxPoll_8125 = 0x90,
348348
LEDSEL3 = 0x96,
349349
MAC0_BKP = 0x19e0,
350+
RSS_CTRL_8125 = 0x4500,
351+
Q_NUM_CTRL_8125 = 0x4800,
350352
EEE_TXIDLE_TIMER_8125 = 0x6048,
351353
};
352354

@@ -3766,8 +3768,8 @@ static void rtl_hw_start_8125_common(struct rtl8169_private *tp)
37663768
rtl_pcie_state_l2l3_disable(tp);
37673769

37683770
RTL_W16(tp, 0x382, 0x221b);
3769-
RTL_W8(tp, 0x4500, 0);
3770-
RTL_W16(tp, 0x4800, 0);
3771+
RTL_W32(tp, RSS_CTRL_8125, 0);
3772+
RTL_W16(tp, Q_NUM_CTRL_8125, 0);
37713773

37723774
/* disable UPS */
37733775
r8168_mac_ocp_modify(tp, 0xd40a, 0x0010, 0x0000);

0 commit comments

Comments
 (0)