Skip to content

Commit c4cf093

Browse files
Keerthyjtmlind
authored andcommitted
bus: omap_l3_noc: Correct returning IRQ_HANDLED unconditionally in the irq handler
Correct returning IRQ_HANDLED unconditionally in the irq handler. Return IRQ_NONE for some interrupt which we do not expect to be handled in this handler. This prevents kernel stalling with back to back spurious interrupts. Fixes: 2722e56 ("OMAP4: l3: Introduce l3-interconnect error handling driver") Acked-by: Nishanth Menon <nm@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 61b43d4 commit c4cf093

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎drivers/bus/omap_l3_noc.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,14 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
222222
}
223223

224224
/* Error found so break the for loop */
225-
break;
225+
return IRQ_HANDLED;
226226
}
227227
}
228-
return IRQ_HANDLED;
228+
229+
dev_err(l3->dev, "L3 %s IRQ not handled!!\n",
230+
inttype ? "debug" : "application");
231+
232+
return IRQ_NONE;
229233
}
230234

231235
static const struct of_device_id l3_noc_match[] = {

0 commit comments

Comments
 (0)