]> 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)
commit38c87fac91e20a38f43ac045c2789e226d97acc6
tree1ac0904f13444da56c46d2b91df77bbbe183b81d
parenta7b31c0c2dee5b22a319ff948f8ea4e443cec38f
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