瀏覽代碼

sdhci: Fix "Unexpected interrupt" handling

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>
Rolf Eike Beer 18 年之前
父節點
當前提交
9d26a5d3f2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mmc/host/sdhci.c

+ 1 - 1
drivers/mmc/host/sdhci.c

@@ -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",