linux-uconsole/drivers/input/keyboard
Anson Huang 41420ac584 Input: imx_keypad - make sure keyboard can always wake up system
[ Upstream commit ce9a53eb3d ]

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>
2019-07-14 08:11:09 +02:00
..
adc-keys.c
adp5520-keys.c
adp5588-keys.c
adp5589-keys.c Input: mark expected switch fall-throughs 2018-08-08 11:23:27 -07:00
amikbd.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
atakbd.c Input: atakbd - fix Atari CapsLock behaviour 2018-09-18 15:28:07 -07:00
atkbd.c
bcm-keypad.c
cap11xx.c Input: cap11xx - switch to using set_brightness_blocking() 2019-03-23 20:09:44 +01:00
clps711x-keypad.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
cros_ec_keyb.c Input: cros_ec_keyb - fix button/switch capability reports 2018-12-08 12:59:09 +01:00
davinci_keyscan.c
dlink-dir685-touchkeys.c
ep93xx_keypad.c
goldfish_events.c Input: goldfish_events - fix checkpatch warnings 2018-06-04 13:36:26 -07:00
gpio_keys.c Input: gpio-keys - switch to bitmap_zalloc() 2018-08-01 17:59:21 -07:00
gpio_keys_polled.c
hil_kbd.c
hilkbd.c Input: hilkbd - Add casts to HP9000/300 I/O accessors 2018-07-29 10:48:18 +02:00
hpps2atkbd.h
imx_keypad.c Input: imx_keypad - make sure keyboard can always wake up system 2019-07-14 08:11:09 +02:00
ipaq-micro-keys.c
jornada680_kbd.c
jornada720_kbd.c
Kconfig Input: keyboard: Fix ChromeOS EC keyboard help message. 2018-07-03 12:40:44 -07:00
lkkbd.c
lm8323.c
lm8333.c
locomokbd.c Input: keyboard - convert timers to use timer_setup() 2017-10-24 10:04:44 -07:00
lpc32xx-keys.c
Makefile input: Add MediaTek PMIC keys support 2018-04-16 15:16:11 +01:00
maple_keyb.c
matrix_keypad.c Input: matrix_keypad - use flush_delayed_work() 2019-03-23 20:09:44 +01:00
max7359_keypad.c
mcs_touchkey.c
mpr121_touchkey.c
mtk-pmic-keys.c input: Add MediaTek PMIC keys support 2018-04-16 15:16:11 +01:00
newtonkbd.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
nomadik-ske-keypad.c
nspire-keypad.c
omap-keypad.c Input: keyboard - convert timers to use timer_setup() 2017-10-24 10:04:44 -07:00
omap4-keypad.c Input: omap-keypad - fix idle configuration to not block SoC idle states 2019-01-13 09:50:58 +01:00
opencores-kbd.c
pmic8xxx-keypad.c Input: pmic8xxx-keypad - remove unneeded MODULE_VERSION() usage 2018-01-16 16:48:21 -08:00
pxa27x_keypad.c
pxa930_rotary.c
qt1070.c
qt2160.c
samsung-keypad.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
sh_keysc.c
snvs_pwrkey.c Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ 2019-05-08 07:21:53 +02:00
spear-keyboard.c
st-keyscan.c Input: st-keyscan - fix potential zalloc NULL dereference 2019-03-23 20:09:47 +01:00
stmpe-keypad.c Input: stmpe-keypad - remove VLA usage 2018-03-10 10:18:33 -08:00
stowaway.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
sun4i-lradc-keys.c
sunkbd.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
tc3589x-keypad.c
tca6416-keypad.c
tca8418_keypad.c
tegra-kbc.c Input: keyboard - convert timers to use timer_setup() 2017-10-24 10:04:44 -07:00
tm2-touchkey.c
twl4030_keypad.c
w90p910_keypad.c
xtkbd.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00