Commit 62df67a5 authored by Mark Lord's avatar Mark Lord Committed by Pierre Ossman

sdhci: make isr tolerant of read errors

The interrupt is shared with another device, which resumes earlier than the
sdhci controller, and generates an interrupt.

The sdhci interrupt handler runs, sees 0xffffffff in its own device's
interrupt status, and tries to handle it..  The reason for the 0xffffffff
is that the device is still suspended, and *all* regs are reading back
0xffffffff.
Signed-off-by: default avatarMark Lord <mlord@pobox.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent cd9277c0
...@@ -993,7 +993,7 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id) ...@@ -993,7 +993,7 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
intmask = readl(host->ioaddr + SDHCI_INT_STATUS); intmask = readl(host->ioaddr + SDHCI_INT_STATUS);
if (!intmask) { if (!intmask || intmask == 0xffffffff) {
result = IRQ_NONE; result = IRQ_NONE;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment