Skip to content
Commit d0a8c415 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by David Leach
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>
parent 67d7c13d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment