mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
guamp: input touch fix esd lock issue
touch ilitek fix esd lock issue NO_PROP_NEEDED Change-Id: Ic18b6839078f8a0efe2ad830f7ef8569ea9b8da6 Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1783255 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
6f7c8f5bda
commit
69d8ad4ae9
2 changed files with 6 additions and 2 deletions
|
|
@ -233,6 +233,10 @@ int ili_wq_esd_i2c_check(void)
|
|||
|
||||
static void ilitek_tddi_wq_esd_check(struct work_struct *work)
|
||||
{
|
||||
if (mutex_is_locked(&ilits->touch_mutex)) {
|
||||
ILI_INFO("touch is locked, ignore\n");
|
||||
return;
|
||||
}
|
||||
mutex_lock(&ilits->touch_mutex);
|
||||
if (!ilits->tp_suspend && ilits->esd_recover() < 0) {
|
||||
ILI_ERR("SPI ACK failed, doing spi recovery\n");
|
||||
|
|
@ -1045,7 +1049,7 @@ int ili_tddi_init(void)
|
|||
spin_lock_init(&ilits->irq_spin);
|
||||
init_completion(&ilits->esd_done);
|
||||
|
||||
atomic_set(&ilits->irq_stat, DISABLE);
|
||||
//atomic_set(&ilits->irq_stat, DISABLE);
|
||||
atomic_set(&ilits->ice_stat, DISABLE);
|
||||
atomic_set(&ilits->tp_reset, END);
|
||||
atomic_set(&ilits->fw_stat, END);
|
||||
|
|
|
|||
|
|
@ -259,9 +259,9 @@ static int ili_spi_pll_clk_wakeup(void)
|
|||
wdata[1] = wlen >> 8;
|
||||
wdata[2] = wlen & 0xff;
|
||||
index = 3;
|
||||
wlen += index;
|
||||
|
||||
ipio_memcpy(&wdata[index], wakeup, wlen, wlen);
|
||||
wlen += index;
|
||||
|
||||
ILI_INFO("Write dummy to wake up spi pll clk\n");
|
||||
if (ilits->spi_write_then_read(ilits->spi, wdata, wlen, NULL, 0) < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue