From 3b4b1c2e8fbd628bf913870663a79fca8ebd9f20 Mon Sep 17 00:00:00 2001 From: litong Date: Sun, 26 Apr 2020 19:17:20 +0800 Subject: [PATCH] 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 Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- .../input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c index f81b3b5081c5..a6b2f1fc5c9c 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c +++ b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_notif.c @@ -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__);