[PATCH] gpio: rockchip: Reset int_bothedge when changing trigger
Bartosz Golaszewski
brgl at bgdev.pl
Wed Feb 16 06:55:30 PST 2022
On Sat, Feb 12, 2022 at 9:50 PM Samuel Holland <samuel at sholland.org> wrote:
>
> 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 at baierouge.fr>
> Tested-by: Guillaume Savaton <guillaume at baierouge.fr>
> Signed-off-by: Samuel Holland <samuel at sholland.org>
> ---
Queued for fixes, thanks!
Bart
More information about the linux-arm-kernel
mailing list