From 154ec7b967658ebc484f392f35573cdc1ef338b4 Mon Sep 17 00:00:00 2001 From: litong20 Date: Fri, 3 Dec 2021 11:01:24 +0800 Subject: [PATCH] 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 Submit-Approved: Jira Key --- drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_mmi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_mmi.c b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_mmi.c index 1b616407acd1..24eab22f8565 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_mmi.c +++ b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_mmi.c @@ -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: