diff options
author | Bridge Wu <mingqiao.wu@gmail.com> | 2007-09-25 12:59:07 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-09-25 12:59:07 -0400 |
commit | 81ab570f65395f09962f4bca0d89403f8911c071 (patch) | |
tree | 4a2effd3b3a9cfcd1c54826f61b88f9efd2f4a77 /drivers/mmc/host | |
parent | faf39ede5e6325d3e91b6e4e0017d27fbecb6022 (diff) |
mmc: pxamci: better pending IRQ determination
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>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/pxamci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index b89e32d1e9b5..03d162881159 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c | |||
@@ -298,7 +298,7 @@ static irqreturn_t pxamci_irq(int irq, void *devid) | |||
298 | unsigned int ireg; | 298 | unsigned int ireg; |
299 | int handled = 0; | 299 | int handled = 0; |
300 | 300 | ||
301 | ireg = readl(host->base + MMC_I_REG); | 301 | ireg = readl(host->base + MMC_I_REG) & ~readl(host->base + MMC_I_MASK); |
302 | 302 | ||
303 | if (ireg) { | 303 | if (ireg) { |
304 | unsigned stat = readl(host->base + MMC_STAT); | 304 | unsigned stat = readl(host->base + MMC_STAT); |