Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143950
b: refs/heads/master
c: 3f9738f
h: refs/heads/master
v: v3
  • Loading branch information
Jianjun kong authored and David S. Miller committed Apr 22, 2009
1 parent 9da98c4 commit ed0112d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 3fa6b5adbe46b3d665267dee0f879858ab464f44
refs/heads/master: 3f9738f73ad08ef770df64f145007bd27ac2fa16
10 changes: 5 additions & 5 deletions trunk/drivers/net/8139too.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,15 +1383,18 @@ static void rtl8139_hw_start (struct net_device *dev)
RTL_W32_F (MAC0 + 0, le32_to_cpu (*(__le32 *) (dev->dev_addr + 0)));
RTL_W32_F (MAC0 + 4, le16_to_cpu (*(__le16 *) (dev->dev_addr + 4)));

tp->cur_rx = 0;

/* init Rx ring buffer DMA address */
RTL_W32_F (RxBuf, tp->rx_ring_dma);

/* Must enable Tx/Rx before setting transfer thresholds! */
RTL_W8 (ChipCmd, CmdRxEnb | CmdTxEnb);

tp->rx_config = rtl8139_rx_config | AcceptBroadcast | AcceptMyPhys;
RTL_W32 (RxConfig, tp->rx_config);
RTL_W32 (TxConfig, rtl8139_tx_config);

tp->cur_rx = 0;

rtl_check_media (dev, 1);

if (tp->chipset >= CH_8139B) {
Expand All @@ -1406,9 +1409,6 @@ static void rtl8139_hw_start (struct net_device *dev)
/* Lock Config[01234] and BMCR register writes */
RTL_W8 (Cfg9346, Cfg9346_Lock);

/* init Rx ring buffer DMA address */
RTL_W32_F (RxBuf, tp->rx_ring_dma);

/* init Tx buffer DMA addresses */
for (i = 0; i < NUM_TX_DESC; i++)
RTL_W32_F (TxAddr0 + (i * 4), tp->tx_bufs_dma + (tp->tx_buf[i] - tp->tx_bufs));
Expand Down

0 comments on commit ed0112d

Please sign in to comment.