From 71d26dcd2a8385196838cb2af269ef486b9dbd0c Mon Sep 17 00:00:00 2001 From: hujing3 Date: Tue, 10 Nov 2020 17:33:54 +0800 Subject: [PATCH] ili9882_mmi: tp suspend improve ili9882_mmi: update tp suspend to avoid calling ili_spi_pll_clk_wakeup when resume NO_PROP_NEEDED Change-Id: I9a548eb50ff3492f094ce2c71c238ec21d9d3280 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/1798682 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.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100755 => 100644 drivers/input/touchscreen/ili9882_mmi/ili9882.c diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882.c b/drivers/input/touchscreen/ili9882_mmi/ili9882.c old mode 100755 new mode 100644 index 081b13028c33..85fcbde8c7dd --- a/drivers/input/touchscreen/ili9882_mmi/ili9882.c +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882.c @@ -56,7 +56,7 @@ static void ilitek_resume_by_ddi_work(struct work_struct *work) ILI_INFO("TP resume end by wq\n"); ili_wq_ctrl(WQ_ESD, ENABLE); ili_wq_ctrl(WQ_BAT, ENABLE); - ilits->tp_suspend = false; + mutex_unlock(&ilits->touch_mutex); } @@ -70,7 +70,7 @@ void ili_resume_by_ddi(void) // mutex_lock(&ilits->touch_mutex); ILI_INFO("TP resume start called by ddi\n"); - + ilits->tp_suspend = false; /* * To match the timing of sleep out, the first of mipi cmd must be sent within 10ms * after TP reset. We then create a wq doing host download before resume. @@ -508,6 +508,7 @@ int ili_sleep_handler(int mode) case TP_RESUME: #if !RESUME_BY_DDI ILI_INFO("TP resume start\n"); + ilits->tp_suspend = false; if (ilits->gesture) disable_irq_wake(ilits->irq_num); @@ -525,7 +526,7 @@ int ili_sleep_handler(int mode) } ili_wq_ctrl(WQ_ESD, ENABLE); ili_wq_ctrl(WQ_BAT, ENABLE); - ilits->tp_suspend = false; + ILI_INFO("TP resume end\n"); #else ili_resume_by_ddi();