Skip to content
Commit 83466c2a authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Henrik Brix Andersen
Browse files

input: gpio_keys: fix suspend race condition



Change the suspend/resume code to ensure that the interrupt are disabled
before changing the pin configuration. The current sequence has been
reported to cause spurious readouts on some platforms, this takes the
existing code and duplicates for the suspend and resume case, but swaps
the interrupt disable and configure for the suspend case.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
(cherry picked from commit d0a8c415)
parent 78aaf1d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment