Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62816
b: refs/heads/master
c: 91a500a
h: refs/heads/master
v: v3
  • Loading branch information
Jay Cliburn authored and Jeff Garzik committed Jul 24, 2007
1 parent 50829b4 commit fa0bbee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 3f516c00d416bd39aab6cfb348b68919e295fe23
refs/heads/master: 91a500ac5654766e4d9a6502dfcceb7e0a235f98
5 changes: 4 additions & 1 deletion trunk/drivers/net/atl1/atl1_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,10 @@ static u32 atl1_configure(struct atl1_adapter *adapter)
iowrite32(value, hw->hw_addr + REG_DMA_CTRL);

/* config CMB / SMB */
value = hw->cmb_rrd | ((u32) hw->cmb_tpd << 16);
value = (hw->cmb_tpd > adapter->tpd_ring.count) ?
hw->cmb_tpd : adapter->tpd_ring.count;
value <<= 16;
value |= hw->cmb_rrd;
iowrite32(value, hw->hw_addr + REG_CMB_WRITE_TH);
value = hw->cmb_rx_timer | ((u32) hw->cmb_tx_timer << 16);
iowrite32(value, hw->hw_addr + REG_CMB_WRITE_TIMER);
Expand Down

0 comments on commit fa0bbee

Please sign in to comment.