Skip to content

Commit

Permalink
mmc: pxamci: better pending IRQ determination
Browse files Browse the repository at this point in the history
Pending interrupts should be determined from both I_REG and I_MASK
registers.

Signed-off-by: Bridge Wu <mingqiao.wu@gmail.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Bridge Wu authored and Pierre Ossman committed Sep 25, 2007
1 parent faf39ed commit 81ab570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ static irqreturn_t pxamci_irq(int irq, void *devid)
unsigned int ireg;
int handled = 0;

ireg = readl(host->base + MMC_I_REG);
ireg = readl(host->base + MMC_I_REG) & ~readl(host->base + MMC_I_MASK);

if (ireg) {
unsigned stat = readl(host->base + MMC_STAT);
Expand Down

0 comments on commit 81ab570

Please sign in to comment.