Skip to content

Commit 194f9f9

Browse files
RengarajanSSgregkh
authored andcommitted
misc: microchip: pci1xxxx: Resolve kernel panic during GPIO IRQ handling
Resolve kernel panic caused by improper handling of IRQs while accessing GPIO values. This is done by replacing generic_handle_irq with handle_nested_irq. Fixes: 1f4d8ae ("misc: microchip: pci1xxxx: Add gpio irq handler and irq helper functions irq_ack, irq_mask, irq_unmask and irq_set_type of irq_chip.") Cc: stable <stable@kernel.org> Signed-off-by: Rengarajan S <rengarajan.s@microchip.com> Link: https://lore.kernel.org/r/20241205133626.1483499-2-rengarajan.s@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 997bb2d commit 194f9f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static irqreturn_t pci1xxxx_gpio_irq_handler(int irq, void *dev_id)
277277
writel(BIT(bit), priv->reg_base + INTR_STATUS_OFFSET(gpiobank));
278278
spin_unlock_irqrestore(&priv->lock, flags);
279279
irq = irq_find_mapping(gc->irq.domain, (bit + (gpiobank * 32)));
280-
generic_handle_irq(irq);
280+
handle_nested_irq(irq);
281281
}
282282
}
283283
spin_lock_irqsave(&priv->lock, flags);

0 commit comments

Comments
 (0)