mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
r8169: read common register for PCI commit
RTL8125 uses a different register number for IntrMask. To net have side effects by reading a random register let's use a register that is the same on all supported chip families. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
bcf2b868a5
commit
7366016d2d
1 file changed
+1
-1
@@ -5135,7 +5135,7 @@ static void rtl_hw_start(struct rtl8169_private *tp)
|
||||
rtl_lock_config_regs(tp);
|
||||
|
||||
/* Initially a 10 us delay. Turned it into a PCI commit. - FR */
|
||||
RTL_R8(tp, IntrMask);
|
||||
RTL_R16(tp, CPlusCmd);
|
||||
RTL_W8(tp, ChipCmd, CmdTxEnb | CmdRxEnb);
|
||||
rtl_init_rxcfg(tp);
|
||||
rtl_set_tx_config_registers(tp);
|
||||
|
||||
Reference in new issue
Block a user