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 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274865
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Wenge Zhu 2022-05-20 15:22:56 +08:00 • committed by zhuwg1
commit bb5af1188d

View file

@ -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__,