OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a0ba6
)
[PATCH] Char: isicom, check card state in isr
author
Jiri Slaby
<jirislaby@gmail.com>
Sat, 10 Feb 2007 09:44:53 +0000
(
01:44
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:26 +0000
(10:51 -0800)
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>
drivers/char/isicom.c
patch
|
blob
|
history
diff --git
a/drivers/char/isicom.c
b/drivers/char/isicom.c
index
42171ad
..
eddb8d3
100644
(file)
--- a/
drivers/char/isicom.c
+++ b/
drivers/char/isicom.c
@@
-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);
/*