Re: [PATCH 2/2] memory: tegra30-mc: Fix IRQ handler bugs.

From: Thierry Reding
Date: Mon Jun 10 2013 - 16:37:57 EST


On Mon, Jun 10, 2013 at 12:13:44PM +0300, Tuomas Tynkkynen wrote:
[...]
> diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c
[...]
> @@ -313,8 +313,11 @@ static irqreturn_t tegra30_mc_isr(int irq, void *data)
> mask &= stat;
> if (!mask)
> return IRQ_NONE;
> - while ((bit = ffs(mask)) != 0)
> + while ((bit = ffs(mask)) != 0) {
> tegra30_mc_decode(mc, bit - 1);
> + mask &= BIT(bit);

Same comment as for patch 1/2.

Thierry

Attachment: pgp00000.pgp
Description: PGP signature