Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132556
b: refs/heads/master
c: e3162d3
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and David S. Miller committed Mar 23, 2009
1 parent 05809b0 commit d8a68ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 6580f57d485f70851218813fa053d971915f61fb
refs/heads/master: e3162d381fc359ebe5c98a3e216888a7cb200051
6 changes: 4 additions & 2 deletions trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,13 +930,15 @@ static irqreturn_t dm9000_interrupt(int irq, void *dev_id)
struct net_device *dev = dev_id;
board_info_t *db = netdev_priv(dev);
int int_status;
unsigned long flags;
u8 reg_save;

dm9000_dbg(db, 3, "entering %s\n", __func__);

/* A real interrupt coming */

spin_lock(&db->lock);
/* holders of db->lock must always block IRQs */
spin_lock_irqsave(&db->lock, flags);

/* Save previous register address */
reg_save = readb(db->io_addr);
Expand Down Expand Up @@ -972,7 +974,7 @@ static irqreturn_t dm9000_interrupt(int irq, void *dev_id)
/* Restore previous register address */
writeb(reg_save, db->io_addr);

spin_unlock(&db->lock);
spin_unlock_irqrestore(&db->lock, flags);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit d8a68ea

Please sign in to comment.