summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorAnson Huang <anson.huang@nxp.com>2019-06-11 17:50:44 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-21 09:04:23 +0200
commitb7c93cafd5a7eba38e6e0ef8b5679e43a37b49ad (patch)
tree3097bc7a86212a605838d2746b1c286ea79e7db1 /virt
parent0e717dabc81195496d4beb66676c25a491d053db (diff)
Input: imx_keypad - make sure keyboard can always wake up system
[ Upstream commit ce9a53eb3dbca89e7ad86673d94ab886e9bea704 ] There are several scenarios that keyboard can NOT wake up system from suspend, e.g., if a keyboard is depressed between system device suspend phase and device noirq suspend phase, the keyboard ISR will be called and both keyboard depress and release interrupts will be disabled, then keyboard will no longer be able to wake up system. Another scenario would be, if a keyboard is kept depressed, and then system goes into suspend, the expected behavior would be when keyboard is released, system will be waked up, but current implementation can NOT achieve that, because both depress and release interrupts are disabled in ISR, and the event check is still in progress. To fix these issues, need to make sure keyboard's depress or release interrupt is enabled after noirq device suspend phase, this patch moves the suspend/resume callback to noirq suspend/resume phase, and enable the corresponding interrupt according to current keyboard status. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions