mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "input: touchscreen: nt36xxx: Skip i2c tx during tui suspend"
This commit is contained in:
commit
bebc15ab65
1 changed files with 4 additions and 5 deletions
|
|
@ -3086,10 +3086,6 @@ static int32_t nvt_ts_suspend(struct device *dev)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_NOVATEK_TRUSTED_TOUCH
|
||||
if (atomic_read(&ts->trusted_touch_underway))
|
||||
wait_for_completion_interruptible(
|
||||
&ts->trusted_touch_powerdown);
|
||||
|
||||
atomic_set(&ts->suspend_resume_underway, 1);
|
||||
reinit_completion(&ts->touch_suspend_resume);
|
||||
#endif
|
||||
|
|
@ -3124,7 +3120,10 @@ static int32_t nvt_ts_suspend(struct device *dev)
|
|||
//---write command to enter "deep sleep mode"---
|
||||
buf[0] = EVENT_MAP_HOST_CMD;
|
||||
buf[1] = 0x11;
|
||||
CTP_I2C_WRITE(ts->client, I2C_FW_Address, buf, 2);
|
||||
#ifdef CONFIG_NOVATEK_TRUSTED_TOUCH
|
||||
if (!atomic_read(&ts->trusted_touch_underway))
|
||||
CTP_I2C_WRITE(ts->client, I2C_FW_Address, buf, 2);
|
||||
#endif
|
||||
#endif // WAKEUP_GESTURE
|
||||
|
||||
mutex_unlock(&ts->lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue