Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112256
b: refs/heads/master
c: b836390
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu committed Oct 10, 2008
1 parent 1ae6b84 commit f498d4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 236b8082aa239e91c3cd9cb466d0527a735e54db
refs/heads/master: b8363901596f64ef74db906df0c4a95daea47464
13 changes: 7 additions & 6 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,14 +2396,10 @@ static void rtl_hw_start_8168(struct net_device *dev)

rtl_set_rx_max_size(ioaddr);

rtl_set_rx_tx_config_registers(tp);

tp->cp_cmd |= RTL_R16(CPlusCmd) | PktCntrDisable | INTT_1;

RTL_W16(CPlusCmd, tp->cp_cmd);

rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);

RTL_W16(IntrMitigate, 0x5151);

/* Work around for RxFIFO overflow. */
Expand All @@ -2414,14 +2410,19 @@ static void rtl_hw_start_8168(struct net_device *dev)

rtl_set_rx_tx_desc_registers(tp, ioaddr);

RTL_W8(Cfg9346, Cfg9346_Lock);
rtl_set_rx_mode(dev);

RTL_W32(TxConfig, (TX_DMA_BURST << TxDMAShift) |
(InterFrameGap << TxInterFrameGapShift));

RTL_R8(IntrMask);

rtl_set_rx_mode(dev);
rtl_tx_performance_tweak(pdev, 0x5 << MAX_READ_REQUEST_SHIFT);

RTL_W8(ChipCmd, CmdTxEnb | CmdRxEnb);

RTL_W8(Cfg9346, Cfg9346_Lock);

RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000);

RTL_W16(IntrMask, tp->intr_event);
Expand Down

0 comments on commit f498d4d

Please sign in to comment.