focaltech_0flash_mmi: Disable irq is gesture not enabled

TP:
If tp gesture is not enabled, disable touch irq when suspend, and enable
it in resume

Change-Id: I1a0973206e0bcd81c3dd020538c357b7913ad142
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1436140
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2019-10-12 19:43:51 +08:00 • committed by Jialei Hao
commit efbe0ec3fa

View file

@ -2070,7 +2070,7 @@ static int _fts_ts_suspend(struct device *dev)
#endif
#endif
fts_irq_disable();
/* TP enter sleep mode */
ret = fts_write_reg(FTS_REG_POWER_MODE, FTS_REG_POWER_MODE_SLEEP_VALUE);
if (ret < 0)
@ -2144,6 +2144,7 @@ static int _fts_ts_resume(struct device *dev)
fts_reset_proc(200);
}
fts_irq_enable();
fts_tp_state_recovery(ts_data);
#if FTS_ESDCHECK_EN