diff options
author | Samuel Holland <samuel@sholland.org> | 2022-02-12 21:50:48 +0100 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-02-16 15:52:22 +0100 |
commit | 7920af5c826cb4a7ada1ae26fdd317642805adc2 (patch) | |
tree | e6d8171258cbe68a08272683d478e28555712445 /drivers/gpio/gpiolib.c | |
parent | Linux 5.17-rc4 (diff) | |
download | linux-7920af5c826cb4a7ada1ae26fdd317642805adc2.tar.xz linux-7920af5c826cb4a7ada1ae26fdd317642805adc2.zip |
gpio: rockchip: Reset int_bothedge when changing trigger
With v2 hardware, an IRQ can be configured to trigger on both edges via
a bit in the int_bothedge register. Currently, the driver sets this bit
when changing the trigger type to IRQ_TYPE_EDGE_BOTH, but fails to reset
this bit if the trigger type is later changed to something else. This
causes spurious IRQs, and when using gpio-keys with wakeup-event-action
set to EV_ACT_(DE)ASSERTED, those IRQs translate into spurious wakeups.
Fixes: 3bcbd1a85b68 ("gpio/rockchip: support next version gpio controller")
Reported-by: Guillaume Savaton <guillaume@baierouge.fr>
Tested-by: Guillaume Savaton <guillaume@baierouge.fr>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions