On Sat, Feb 12, 2022 at 9:50 PM Samuel Holland <samuel@xxxxxxxxxxxx> 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@xxxxxxxxxxxx> > Tested-by: Guillaume Savaton <guillaume@xxxxxxxxxxxx> > Signed-off-by: Samuel Holland <samuel@xxxxxxxxxxxx> > --- Queued for fixes, thanks! Bart