Skip to content

Commit

Permalink
sdhci: Fix "Unexpected interrupt" handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rolf Eike Beer authored and Pierre Ossman committed Jul 9, 2007
1 parent 8c75dea commit 9d26a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9d26a5d

Please sign in to comment.