Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223257
b: refs/heads/master
c: eaff945
h: refs/heads/master
i:
  223255: dab5ffa
v: v3
  • Loading branch information
Krzysztof Halasa authored and David S. Miller committed Dec 12, 2010
1 parent bd01d0d commit 89a94c9
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: 9f5449611c9d6d7bdcae8020a197d8b4d9b6443c
refs/heads/master: eaff9453d3e2b63969af93e9d42a85e803060121
5 changes: 4 additions & 1 deletion trunk/drivers/net/wan/hd64572.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ static inline void sca_tx_done(port_t *port)
struct net_device *dev = port->netdev;
card_t* card = port->card;
u8 stat;
unsigned count = 0;

spin_lock(&port->lock);

Expand All @@ -316,10 +317,12 @@ static inline void sca_tx_done(port_t *port)
dev->stats.tx_bytes += readw(&desc->len);
}
writeb(0, &desc->stat); /* Free descriptor */
count++;
port->txlast = (port->txlast + 1) % card->tx_ring_buffers;
}

netif_wake_queue(dev);
if (count)
netif_wake_queue(dev);
spin_unlock(&port->lock);
}

Expand Down

0 comments on commit 89a94c9

Please sign in to comment.