Messages in this thread Patch in this message | | | From | Tuomas Tynkkynen <> | Subject | [PATCH 1/2] memory: tegra20-mc: Fix hang in IRQ handler. | Date | Mon, 10 Jun 2013 12:13:43 +0300 |
| |
In Tegra20 memory controller any MC interrupt would cause an infinite loop in the IRQ handler.
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com> --- drivers/memory/tegra20-mc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/memory/tegra20-mc.c b/drivers/memory/tegra20-mc.c index 2ca5f28..bd5a553 100644 --- a/drivers/memory/tegra20-mc.c +++ b/drivers/memory/tegra20-mc.c @@ -193,8 +193,11 @@ static irqreturn_t tegra20_mc_isr(int irq, void *data) mask &= stat; if (!mask) return IRQ_NONE; - while ((bit = ffs(mask)) != 0) + while ((bit = ffs(mask)) != 0) { tegra20_mc_decode(mc, bit - 1); + mask &= BIT(bit); + } + mc_writel(mc, stat, MC_INTSTATUS); return IRQ_HANDLED; } -- 1.8.1.5
| |