]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:23:00 +0000 (08:23 +0200)
commit7e631a6e95b9575b00530fb54901220b5770fa65
treef7a5cb6089e74ba430fe3d2fc220af3289df4aad
parent9ffc771032fcd458c32b7211c25d6efad043bf55
gpio: tegra: mask GPIO IRQs during IRQ shutdown

[ Upstream commit 0cf253eed5d2bdf7bb3152457b38f39b012955f7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-tegra.c