]> git.baikalelectronics.ru Git - kernel.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)
commit8042cf7933b0c92aa5990e72f619be4fdcd3cbf1
tree58ac91fc243f77957978b35243b73ec66b295917
parent076f58ca5cb2365fbfca731c043ac81f7d005d3a
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