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 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798682
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
hujing3 2020-11-10 17:33:54 +08:00 • committed by Jing Hu
commit 71d26dcd2a

7
drivers/input/touchscreen/ili9882_mmi/ili9882.c Executable file → Normal file
View file

@ -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();