Skip to content

Commit

Permalink
3c574_cs: disable irq before calling el3_interrupt
Browse files Browse the repository at this point in the history
3c574_cs, 3c589_cs:
	disable irq before calling el3_interrupt
	in the media_check function.

Signed-off-by: Ken Kawasaki <ken_kawasaki@spring.nifty.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ken Kawasaki authored and David S. Miller committed Dec 14, 2009
1 parent e080279 commit 671c880
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/pcmcia/3c574_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,11 @@ static void media_check(unsigned long arg)
if ((inw(ioaddr + EL3_STATUS) & IntLatch) && (inb(ioaddr + Timer) == 0xff)) {
if (!lp->fast_poll)
printk(KERN_INFO "%s: interrupt(s) dropped!\n", dev->name);

local_irq_save(flags);
el3_interrupt(dev->irq, dev);
local_irq_restore(flags);

lp->fast_poll = HZ;
}
if (lp->fast_poll) {
Expand Down
4 changes: 4 additions & 0 deletions drivers/net/pcmcia/3c589_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,11 @@ static void media_check(unsigned long arg)
(inb(ioaddr + EL3_TIMER) == 0xff)) {
if (!lp->fast_poll)
printk(KERN_WARNING "%s: interrupt(s) dropped!\n", dev->name);

local_irq_save(flags);
el3_interrupt(dev->irq, dev);
local_irq_restore(flags);

lp->fast_poll = HZ;
}
if (lp->fast_poll) {
Expand Down

0 comments on commit 671c880

Please sign in to comment.