]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sdhci: Fix "Unexpected interrupt" handling
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Tue, 26 Jun 2007 11:31:16 +0000 (13:31 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Mon, 9 Jul 2007 19:28:35 +0000 (21:28 +0200)
Whenever a power interrupt is signaled it is also reported as an unexpected
one. All other unexpected interrupts get lost. Cause is a not inversed
bitmask to remove power interrupts from the status.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/sdhci.c

index 5e9a6ce8355983f4a10d79d0692e7ce8cdf7c013..10d15c39d003a58e372f306c53c3f5d3aba76787 100644 (file)
@@ -1030,7 +1030,7 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
                writel(SDHCI_INT_BUS_POWER, host->ioaddr + SDHCI_INT_STATUS);
        }
 
-       intmask &= SDHCI_INT_BUS_POWER;
+       intmask &= ~SDHCI_INT_BUS_POWER;
 
        if (intmask) {
                printk(KERN_ERR "%s: Unexpected interrupt 0x%08x.\n",