From f155ee5a66acaf8cf30e66cf3595ed74d9701655 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 11 Nov 2020 18:25:37 +0800 Subject: [PATCH] ili9882_mmi: deep sleep update with gesture config ili9882_mmi: need enter deep sleep when suspend if gesture disable NO_PROP_NEEDED Change-Id: I9e1806b481e8eb7a803427b725745905336577ec Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/1799686 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c b/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c index 7a0ae39a3ea8..c78642676504 100755 --- a/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c @@ -443,6 +443,7 @@ static int ilitek_plat_notifier_fb(struct notifier_block *self, unsigned long ev */ if (event == DRM_PANEL_EARLY_EVENT_BLANK) { +#if ENABLE_GESTURE if (ilits->tp_module == MODEL_TM) { if (ili_sleep_handler(TP_DEEP_SLEEP) < 0) ILI_ERR("TP deep sleep in failed\n"); @@ -450,6 +451,16 @@ static int ilitek_plat_notifier_fb(struct notifier_block *self, unsigned long ev if (ili_sleep_handler(TP_SUSPEND) < 0) ILI_ERR("TP suspend failed\n"); } +#else + //enter deep sleep when not enable gesture + if (ili_sleep_handler(TP_DEEP_SLEEP) < 0) + { + ILI_ERR("TP deep sleep in failed\n"); + } else { + ILI_INFO("TP in deep sleep\n"); + } +#endif + #ifdef ILI_CONFIG_GESTURE touch_set_state(TOUCH_LOW_POWER_STATE, TOUCH_PANEL_IDX_PRIMARY); #endif