mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
memory: tegra20-mc: Fix hang in IRQ handler.
In Tegra20 any memory controller interrupt would cause an infinite loop in the IRQ handler. Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c9b48ac3c
commit
d777f98bfa
1 changed files with 4 additions and 1 deletions
|
@ -193,8 +193,11 @@ static irqreturn_t tegra20_mc_isr(int irq, void *data)
|
||||||
mask &= stat;
|
mask &= stat;
|
||||||
if (!mask)
|
if (!mask)
|
||||||
return IRQ_NONE;
|
return IRQ_NONE;
|
||||||
while ((bit = ffs(mask)) != 0)
|
while ((bit = ffs(mask)) != 0) {
|
||||||
tegra20_mc_decode(mc, bit - 1);
|
tegra20_mc_decode(mc, bit - 1);
|
||||||
|
mask &= ~BIT(bit - 1);
|
||||||
|
}
|
||||||
|
|
||||||
mc_writel(mc, stat, MC_INTSTATUS);
|
mc_writel(mc, stat, MC_INTSTATUS);
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue