Re: [PATCH v2] mfd: axp20x: fix order of pek rise and fall events

From: Chen-Yu Tsai
Date: Fri Dec 09 2022 - 02:50:22 EST


On Fri, Dec 9, 2022 at 6:20 AM Aren Moynihan <aren@xxxxxxxxxxxxxxxxx> wrote:
>
> The power button can get "stuck" if the rising edge and falling edge irq
> are read in the same pass. This can often be triggered when resuming
> from suspend if the power button is released before the kernel handles
> the interrupt.
>
> Swapping the order of the rise and fall events makes sure that the press
> event is handled first, which prevents this situation.
>
> Signed-off-by: Aren Moynihan <aren@xxxxxxxxxxxxxxxxx>

Acked-by: Chen-Yu Tsai <wens@xxxxxxxx>