Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215432
b: refs/heads/master
c: afed4cc
h: refs/heads/master
v: v3
  • Loading branch information
James Hogan authored and David S. Miller committed Oct 21, 2010
1 parent 583d1b0 commit d69f81d
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 31b9c19bfe32bed7fdf80cd0b1aa9d0f0569844a
refs/heads/master: afed4ccb0d975f1d3c98880ecf19a24f3d842394
19 changes: 14 additions & 5 deletions trunk/drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -2296,18 +2296,27 @@ static int b44_resume(struct ssb_device *sdev)
if (!netif_running(dev))
return 0;

spin_lock_irq(&bp->lock);
b44_init_rings(bp);
b44_init_hw(bp, B44_FULL_RESET);
spin_unlock_irq(&bp->lock);

/*
* As a shared interrupt, the handler can be called immediately. To be
* able to check the interrupt status the hardware must already be
* powered back on (b44_init_hw).
*/
rc = request_irq(dev->irq, b44_interrupt, IRQF_SHARED, dev->name, dev);
if (rc) {
netdev_err(dev, "request_irq failed\n");
spin_lock_irq(&bp->lock);
b44_halt(bp);
b44_free_rings(bp);
spin_unlock_irq(&bp->lock);
return rc;
}

spin_lock_irq(&bp->lock);

b44_init_rings(bp);
b44_init_hw(bp, B44_FULL_RESET);
netif_device_attach(bp->dev);
spin_unlock_irq(&bp->lock);

b44_enable_ints(bp);
netif_wake_queue(dev);
Expand Down

0 comments on commit d69f81d

Please sign in to comment.