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: NHans Verkuil <hverkuil@xs4all.nl> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl> Tested-by: NHans 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.orgSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
Showing
想要评论请 注册 或 登录