Skip to content

Commit 0cf253e

Browse files
nvswarrenlinusw
authored andcommitted
gpio: tegra: mask GPIO IRQs during IRQ shutdown
The driver currently leaves GPIO IRQs unmasked even when the GPIO IRQ client has released the GPIO IRQ. This allows the HW to raise IRQs, and SW to process them, after shutdown. Fix this by masking the IRQ when it's shut down. This is usually taken care of by the irqchip core, but since this driver has a custom irq_shutdown implementation, it must do this explicitly itself. Signed-off-by: Stephen Warren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 8650b60 commit 0cf253e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-tegra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ static void tegra_gpio_irq_shutdown(struct irq_data *d)
368368
struct tegra_gpio_info *tgi = bank->tgi;
369369
unsigned int gpio = d->hwirq;
370370

371+
tegra_gpio_irq_mask(d);
371372
gpiochip_unlock_as_irq(&tgi->gc, gpio);
372373
}
373374

0 commit comments

Comments
 (0)