Skip to content
Commit bda40bf6 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Lee Jones
Browse files

mfd: rk8xx-core: Fix interrupt processing order for power key button



Process rise event last, to avoid stuck keys when multiple interrupts
are coalesced. This can happen typically when resuming from suspend
via power key press and holding the power button for a bit too short,
so that RISE an FALL IRQ flags are set before any interrupt routine
has a chance to run.

Input subsystem will interpret it as holding down a power key for
a long time, which leads to unintended initiation of shutdown UI
on some OSes.

Signed-off-by: default avatarOndrej Jirman <megi@xff.cz>
Link: https://lore.kernel.org/r/20240217195615.1767907-1-megi@xff.cz


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 8ba560ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment