From: Jiri Slaby Date: Sat, 10 Feb 2007 09:44:53 +0000 (-0800) Subject: [PATCH] Char: isicom, check card state in isr X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cb4a10ccb0c5b5b02dec1a4a97cba1e8b2c2a325;p=openwrt%2Fstaging%2Fblogic.git [PATCH] Char: isicom, check card state in isr Check if the card really interrupted us by reading its IO space and eventualy return IRQ_NONE. Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c index 42171ad001dd..eddb8d3a620e 100644 --- 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); /*