From bb5af1188d139b8564845841048ce83b954a4c2e Mon Sep 17 00:00:00 2001 From: Wenge Zhu Date: Fri, 20 May 2022 15:22:56 +0800 Subject: [PATCH] Lift off current touch when suspend Lift off current touch when suspend in case after resume still receive last touch data. Change-Id: I2c7e7824d724534af45d88880d08d314e9e9a23c Signed-off-by: Wenge Zhu Reviewed-on: https://gerrit.mot.com/2274865 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c index 3c836bca9775..6642d2b0de16 100644 --- a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c +++ b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_core.c @@ -5107,6 +5107,7 @@ int cyttsp5_core_suspend(struct device *dev) struct cyttsp5_core_data *cd = dev_get_drvdata(dev); cyttsp5_core_sleep(cd); + call_atten_cb(cd, CY_ATTEN_SUSPEND, 0); if (IS_DEEP_SLEEP_CONFIGURED(cd->easy_wakeup_gesture)) return 0; @@ -5169,6 +5170,7 @@ int cyttsp5_core_resume(struct device *dev) } } exit: + call_atten_cb(cd, CY_ATTEN_RESUME, 0); cyttsp5_core_wake(cd); dev_info(dev, "%s: resume power state %s \n", __func__,