gpio: tegra: fix unbalanced chained_irq_enter/exit
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 18 Jul 2017 12:35:45 +0000 (14:35 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:28 +0000 (13:34 +0000)
commit31c0eacab3d550945ced448b9e31280d0b9cc3e1
tree9ebea2bd4dbcf4638d92640a978f01e2808b1c41
parentcfd73915e217c3580ce4fd6c3f52d2422028adea
gpio: tegra: fix unbalanced chained_irq_enter/exit

commit 9e9509e38fbe034782339eb09c915f0b5765ff69 upstream.

When more than one GPIO IRQs are triggered simultaneously,
tegra_gpio_irq_handler() called chained_irq_exit() multiple
times for one chained_irq_enter().

Fixes: 3c92db9ac0ca3eee8e46e2424b6c074e2e394ad9
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
[Also changed the variable to a bool]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpio/gpio-tegra.c