]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: vf610: Mask all GPIO interrupts
authorAndrew Lunn <andrew@lunn.ch>
Sun, 27 Jan 2019 21:58:00 +0000 (22:58 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Jan 2019 14:28:43 +0000 (15:28 +0100)
commit85f0753ea8a87c7c94e5b2762230fc390aa2096e
tree53f4375f9e08653f3d468d02d42916e19762f6ec
parenta0eee0d7db8711ac21ca451ea183eb84ae52867f
gpio: vf610: Mask all GPIO interrupts

On SoC reset all GPIO interrupts are disable. However, if kexec is
used to boot into a new kernel, the SoC does not experience a
reset. Hence GPIO interrupts can be left enabled from the previous
kernel. It is then possible for the interrupt to fire before an
interrupt handler is registered, resulting in the kernel complaining
of an "unexpected IRQ trap", the interrupt is never cleared, and so
fires again, resulting in an interrupt storm.

Disable all GPIO interrupts before registering the GPIO IRQ chip.

Fixes: c899f771b9e8 ("gpio: vf610: add gpiolib/IRQ chip driver for Vybrid")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-vf610.c