Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb4a10cc authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

[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: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f0a0ba6d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);

	/*