Skip to content

Commit a14cc4d

Browse files
hkallweitdavem330
authored andcommitted
r8169: remove access to legacy register MultiIntr
This code piece was inherited from RTL8139 code, the register at address 0x5c however has a different meaning on RTL8169 and is unused. So we can remove this. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2af8cfa commit a14cc4d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ enum rtl_registers {
271271
Config3 = 0x54,
272272
Config4 = 0x55,
273273
Config5 = 0x56,
274-
MultiIntr = 0x5c,
275274
PHYAR = 0x60,
276275
PHYstatus = 0x6c,
277276
RxMaxSize = 0xda,
@@ -5241,10 +5240,7 @@ static void rtl_hw_start(struct rtl8169_private *tp)
52415240
RTL_W8(tp, ChipCmd, CmdTxEnb | CmdRxEnb);
52425241
rtl_init_rxcfg(tp);
52435242
rtl_set_tx_config_registers(tp);
5244-
52455243
rtl_set_rx_mode(tp->dev);
5246-
/* no early-rx interrupts */
5247-
RTL_W16(tp, MultiIntr, RTL_R16(tp, MultiIntr) & 0xf000);
52485244
rtl_irq_enable(tp);
52495245
}
52505246

0 commit comments

Comments
 (0)