]> git.itanic.dy.fi Git - linux-stable/commit
pinctrl: rockchip: Enhance support for IRQ_TYPE_EDGE_BOTH
authorJoão H. Spies <jhlspies@gmail.com>
Mon, 8 Aug 2022 02:51:20 +0000 (02:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:14:02 +0000 (14:14 +0200)
commit4b1366bf4ed14c6c10821a9be39715ae767f11fa
tree55b72996fccfbb88754af7ecfe3cebeadb251d61
parent8e33176cd475d0d3f3b47911bf10b474bc455ee6
pinctrl: rockchip: Enhance support for IRQ_TYPE_EDGE_BOTH

[ Upstream commit b871656aa4f54e04207f62bdd0d7572be1d86b36 ]

Switching between falling/rising edges for IRQ_TYPE_EDGE_BOTH on pins that
require debounce can cause the device to lose events due to a desync
between pin state and irq type.

This problem is resolved by switching between IRQ_TYPE_LEVEL_LOW and
IRQ_TYPE_LEVEL_HIGH instead.

Fixes: 936ee2675eee ("gpio/rockchip: add driver for rockchip gpio")
Signed-off-by: João H. Spies <jhlspies@gmail.com>
Link: https://lore.kernel.org/r/20220808025121.110223-1-jhlspies@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-rockchip.c