key: fix wakeup issues of gpiokey and adckey in freeze mode [1/1]
authorXingyu Chen <xingyu.chen@amlogic.com>
Tue, 24 Sep 2019 05:15:15 +0000 (13:15 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sun, 29 Sep 2019 11:05:05 +0000 (04:05 -0700)
commitc9eb4c5b3eebf511b8eb0348a344a3f1ef7c2eee
treed9c067513570abe53b5cd74fa52c6004d754c62b
parent0eb739d7c8655a7a29f525d2d7c3b2e6463e8b45
key: fix wakeup issues of gpiokey and adckey in freeze mode [1/1]

PD#SWPL-14597

Problem:
- it is risky to replace directly system_freezable_wq with system_wq
for input poll device.
- the system can't be awakened by gpiokey or adckey when system in
freeze mode.

Solution:
- because of the input poll-device can't compatible freeze mode, we
replace it with input device.
- perfect wakeup operation when system works in freeze mode.

Verify:
test pass on ac200

Change-Id: I81c867da7325480712aa5903289e02ebb20d6f07
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
drivers/amlogic/iio/adc/meson_saradc.c
drivers/amlogic/input/keyboard/adc_keypad.c
drivers/amlogic/input/keyboard/adc_keypad.h
drivers/amlogic/input/keyboard/gpio_keypad.c
drivers/input/input-polldev.c
include/linux/amlogic/pm.h