]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: siox: use raw spinlock for irq related locking
authorUwe Kleine-König <uwe@kleine-koenig.org>
Tue, 11 Feb 2020 13:51:21 +0000 (14:51 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Feb 2020 13:51:56 +0000 (14:51 +0100)
commit33a0c9425ab16af49d1297594cc6cba8c3979d3c
treec890c7f8999cd36ae767d50a661c6acc4c4ba57f
parent04c10cf2d57e97c41c54877d965817abb6aeb03b
gpio: siox: use raw spinlock for irq related locking

All the irq related callbacks are called with the (raw) spinlock
desc->lock being held. So the lock here must be raw as well. Also irqs
were already disabled by the caller for the irq chip callbacks, so the
non-irq variants of spin_lock must be used there.

Fixes: 56ab7de3b325 ("gpio: new driver to work with a 8x12 siox")
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Link: https://lore.kernel.org/r/20200211135121.15752-1-uwe@kleine-koenig.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-siox.c