]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: zynqmp-ipi: Fix SGI cleanup on unbind
authorHarini T <harini.t@amd.com>
Mon, 29 Sep 2025 07:37:23 +0000 (13:07 +0530)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 6 Oct 2025 23:14:01 +0000 (18:14 -0500)
commitbb160e791ab15b89188a7a19589b8e11f681bef3
treed24aecb86839c4a297a96afec27528b320d39eac
parent0aead8197fc1a85b0a89646e418feb49a564b029
mailbox: zynqmp-ipi: Fix SGI cleanup on unbind

The driver incorrectly determines SGI vs SPI interrupts by checking IRQ
number < 16, which fails with dynamic IRQ allocation. During unbind,
this causes improper SGI cleanup leading to kernel crash.

Add explicit irq_type field to pdata for reliable identification of SGI
interrupts (type-2) and only clean up SGI resources when appropriate.

Fixes: 6ffb1635341b ("mailbox: zynqmp: handle SGI for shared IPI")
Signed-off-by: Harini T <harini.t@amd.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/zynqmp-ipi-mailbox.c