OSDN Git Service

Input: gpio_keys - handle the missing key press event in resume phase
authorJoseph Lo <josephl@nvidia.com>
Sun, 2 Jul 2017 20:38:31 +0000 (13:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 9 Jul 2017 21:43:27 +0000 (14:43 -0700)
commit0f107573da417c7f5c6d3a0160ebacc3adb019c4
tree1ac0904f13444da56c46d2b91df77bbbe183b81d
parent49aac8204da5f344f52ed9b3eb8736ca7a60c4a8
Input: gpio_keys - handle the missing key press event in resume phase

The GPIO key press event might be missed in the resume phase, if the key
had been released before the system had been resumed to the stage that it
could capture the press event. So we simulate the wakeup key press event
in case the key had been released by the time we got interrupt handler
to run.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c