]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: microchip: pci1xxxx: Fix Kernel panic during IRQ handler registration
authorRengarajan S <rengarajan.s@microchip.com>
Thu, 13 Mar 2025 17:08:55 +0000 (22:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:50:49 +0000 (07:50 +0200)
commit62957f58ab3aa7fa792dc6ff3575624062539a4d
tree09343ec741561320b81c0c3bc0e0ae6d19a17d24
parent5f253cc40e8d45a1a586b81b34b3c24a399d2406
misc: microchip: pci1xxxx: Fix Kernel panic during IRQ handler registration

commit 18eb77c75ed01439f96ae5c0f33461eb5134b907 upstream.

Resolve kernel panic while accessing IRQ handler associated with the
generated IRQ. This is done by acquiring the spinlock and storing the
current interrupt state before handling the interrupt request using
generic_handle_irq.

A previous fix patch was submitted where 'generic_handle_irq' was
replaced with 'handle_nested_irq'. However, this change also causes
the kernel panic where after determining which GPIO triggered the
interrupt and attempting to call handle_nested_irq with the mapped
IRQ number, leads to a failure in locating the registered handler.

Fixes: 194f9f94a516 ("misc: microchip: pci1xxxx: Resolve kernel panic during GPIO IRQ handling")
Cc: stable <stable@kernel.org>
Signed-off-by: Rengarajan S <rengarajan.s@microchip.com>
Link: https://lore.kernel.org/r/20250313170856.20868-2-rengarajan.s@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c