irqchip/mvebu-gicp: Clear pending interrupts on init
authorElad Nachman <enachman@marvell.com>
Sun, 3 Aug 2025 10:25:48 +0000 (13:25 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 5 Aug 2025 08:35:03 +0000 (10:35 +0200)
commit3c3d7dbab2c70a4bca47634d564bf659351c05ca
tree44e82048183cdd2b6623b565d2669d314a556c64
parent02cbf8e0692bd30717b35a3ff5e46460d1d5d471
irqchip/mvebu-gicp: Clear pending interrupts on init

When a kexec'ed kernel boots up, there might be stale unhandled interrupts
pending in the interrupt controller. These are delivered as spurious
interrupts once the boot CPU enables interrupts.

Clear all pending interrupts when the driver is initialized to prevent
these spurious interrupts from locking the CPU in an endless loop.

Signed-off-by: Elad Nachman <enachman@marvell.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250803102548.669682-2-enachman@marvell.com
drivers/irqchip/irq-mvebu-gicp.c