]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: siox: explicitly support only threaded irqs
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 7 Sep 2020 15:31:35 +0000 (17:31 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 9 Sep 2020 10:59:15 +0000 (12:59 +0200)
commit018914592a2627355271cb694e84afabd3bcddd3
tree96d0f7dd134ec40d5baaed2ff278f4c975508f8b
parent6c496fe9c23e17afb02e1bf49ce2596f00256f79
gpio: siox: explicitly support only threaded irqs

The gpio-siox driver uses handle_nested_irq() to implement its
interrupt support. This is only capable of handling threaded irq
actions. For a hardirq action it triggers a NULL pointer oops.
(It calls action->thread_fn which is NULL then.)

Prevent registration of a hardirq action by setting
gpio_irq_chip::threaded to true.

Cc: u.kleine-koenig@pengutronix.de
Fixes: 56ab7de3b325 ("gpio: new driver to work with a 8x12 siox")
Cc: stable@vger.kernel.org
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-siox.c