Skip to content

Commit

Permalink
[PATCH] Char: isicom, check card state in isr
Browse files Browse the repository at this point in the history
Check if the card really interrupted us by reading its IO space and eventualy
return IRQ_NONE.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Feb 11, 2007
1 parent f0a0ba6 commit cb4a10c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/char/isicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id)
return IRQ_NONE;

base = card->base;

/* did the card interrupt us? */
if (!(inw(base + 0x0e) & 0x02))
return IRQ_NONE;

spin_lock(&card->card_lock);

/*
Expand Down

0 comments on commit cb4a10c

Please sign in to comment.