提交 81ab570f 编写于 作者: B Bridge Wu 提交者: Pierre Ossman

mmc: pxamci: better pending IRQ determination

Pending interrupts should be determined from both I_REG and I_MASK
registers.
Signed-off-by: NBridge Wu <mingqiao.wu@gmail.com>
Signed-off-by: NNicolas Pitre <nico@marvell.com>
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 faf39ede
...@@ -298,7 +298,7 @@ static irqreturn_t pxamci_irq(int irq, void *devid) ...@@ -298,7 +298,7 @@ static irqreturn_t pxamci_irq(int irq, void *devid)
unsigned int ireg; unsigned int ireg;
int handled = 0; 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) { if (ireg) {
unsigned stat = readl(host->base + MMC_STAT); unsigned stat = readl(host->base + MMC_STAT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册