mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
5ddcba53a1
commit
efbe0ec3fa
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue