]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit422c7b628912e7c8c895efbcd4c079b8442e9cab
tree1ac0904f13444da56c46d2b91df77bbbe183b81d
parentf051c963807cbf655de22549b6de95c04db406be
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