]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: tegra: mask GPIO IRQs during IRQ shutdown
authorStephen Warren <swarren@nvidia.com>
Mon, 27 Apr 2020 23:26:05 +0000 (17:26 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Apr 2020 14:22:33 +0000 (16:22 +0200)
commit401bd7d8f0728af0a54c1b78b314e38b1dfb2659
tree2b94b197852fd617dbaf561300af3d302e70eab3
parent7496e0444a148e2b36e40bfb8dc3882de222923b
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 <swarren@nvidia.com>
Link: https://lore.kernel.org/r/20200427232605.11608-1-swarren@wwwdotorg.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c