Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13606
b: refs/heads/master
c: ba5eec9
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Nov 9, 2005
1 parent ce96608 commit 9f50645
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9dcbb40f40d60c7e33a2b7ea858fcd27c35cc00
refs/heads/master: ba5eec9c55ec4be99d21a6ea614003b65d7f37d7
11 changes: 11 additions & 0 deletions trunk/drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,12 @@ static irqreturn_t b44_interrupt(int irq, void *dev_id, struct pt_regs *regs)
istat &= imask;
if (istat) {
handled = 1;

if (unlikely(!netif_running(dev))) {
printk(KERN_INFO "%s: late interrupt.\n", dev->name);
goto irq_ack;
}

if (netif_rx_schedule_prep(dev)) {
/* NOTE: These writes are posted by the readback of
* the ISTAT register below.
Expand All @@ -921,6 +927,7 @@ static irqreturn_t b44_interrupt(int irq, void *dev_id, struct pt_regs *regs)
dev->name);
}

irq_ack:
bw32(bp, B44_ISTAT, istat);
br32(bp, B44_ISTAT);
}
Expand Down Expand Up @@ -1446,6 +1453,8 @@ static int b44_close(struct net_device *dev)

netif_stop_queue(dev);

netif_poll_disable(dev);

del_timer_sync(&bp->timer);

spin_lock_irq(&bp->lock);
Expand All @@ -1461,6 +1470,8 @@ static int b44_close(struct net_device *dev)

free_irq(dev->irq, dev);

netif_poll_enable(dev);

b44_free_consistent(bp);

return 0;
Expand Down

0 comments on commit 9f50645

Please sign in to comment.