Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19865
b: refs/heads/master
c: f9a66c7
h: refs/heads/master
i:
  19863: cb1f4e5
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Feb 7, 2006
1 parent 8d3a855 commit e233657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: a8ab1ec0c3ef4ce2033abe3441d032fe1490a71a
refs/heads/master: f9a66c7f5fa2262656a1a38ae9b57a2a89980f36
6 changes: 3 additions & 3 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,8 @@ static int sky2_poll(struct net_device *dev0, int *budget)
u16 hwidx;
u16 tx_done[2] = { TX_NO_STATUS, TX_NO_STATUS };

sky2_write32(hw, STAT_CTRL, SC_STAT_CLR_IRQ);

hwidx = sky2_read16(hw, STAT_PUT_IDX);
BUG_ON(hwidx >= STATUS_RING_SIZE);
rmb();
Expand Down Expand Up @@ -1912,12 +1914,10 @@ static int sky2_poll(struct net_device *dev0, int *budget)
}

exit_loop:
sky2_write32(hw, STAT_CTRL, SC_STAT_CLR_IRQ);

sky2_tx_check(hw, 0, tx_done[0]);
sky2_tx_check(hw, 1, tx_done[1]);

if (sky2_read16(hw, STAT_PUT_IDX) == hw->st_idx) {
if (likely(work_done < to_do)) {
/* need to restart TX timer */
if (is_ec_a1(hw)) {
sky2_write8(hw, STAT_TX_TIMER_CTRL, TIM_STOP);
Expand Down

0 comments on commit e233657

Please sign in to comment.