No need to send the suspend command when power off.

When entering the deepsleep state, touch IC will power off,
so there is no need to send the suspend command.

Change-Id: I6b6a3b29eb3b1acee6c72db2b97fdb90710f25bc
Reviewed-on: https://gerrit.mot.com/2134059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong20 2021-12-03 11:01:24 +08:00 • committed by litong
commit 154ec7b967

View file

@ -692,8 +692,9 @@ static int goodix_ts_mmi_panel_state(struct device *dev,
break;
case TS_MMI_PM_DEEPSLEEP:
/* enter sleep mode or power off */
if (hw_ops->suspend)
hw_ops->suspend(core_data);
/* if (hw_ops->suspend)
hw_ops->suspend(core_data);
*/
core_data->gesture_enabled = false;
break;
case TS_MMI_PM_ACTIVE: