]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: fix locking open drain IRQ lines
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 27 May 2020 14:07:58 +0000 (16:07 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 May 2020 12:01:49 +0000 (14:01 +0200)
commite9bdf7e655b9ee81ee912fae1d59df48ce7311b6
tree58ac91fc243f77957978b35243b73ec66b295917
parentad3073bcb903674b11ba3395361f3b94806bb2b6
gpio: fix locking open drain IRQ lines

We provided the right semantics on open drain lines being
by definition output but incidentally the irq set up function
would only allow IRQs on lines that were "not output".

Fix the semantics to allow output open drain lines to be used
for IRQs.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Russell King <linux@armlinux.org.uk>
Cc: stable@vger.kernel.org # v5.3+
Link: https://lore.kernel.org/r/20200527140758.162280-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c