Solve resume and suspend confusion,causes touchscreen crash

When answering a call, the display screen keeps on and off,
which causing the touchscreen to enter the suspend process when the
resume process is not completed

Change-Id: I70ace85a8eb969f5b3005218d432ce4e3d29e8c4
Reviewed-on: https://gerrit.mot.com/1542928
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2020-04-26 19:17:20 +08:00 • committed by litong20
commit 3b4b1c2e8f

View file

@ -124,6 +124,7 @@ static int ts_mmi_panel_cb(struct notifier_block *nb,
switch (event) {
#if defined(CONFIG_PANEL_NOTIFICATIONS)
case PANEL_EVENT_PRE_DISPLAY_OFF:
cancel_delayed_work_sync(&touch_cdev->work);
ts_mmi_panel_off(touch_cdev);
if (NEED_TO_SET_PINCTRL) {
dev_dbg(DEV_MMI, "%s: touch pinctrl off\n", __func__);