mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
focaltech_0flash_v2_mmi: enable FTS_PATCH_COMERR_PM for deep sleep
focaltech_0flash_v2_mmi enable wait mechanism for bus deep sleep Change-Id: I7a6d0b65ce5a64b879c5957b9016036450c28623 Signed-off-by: hujing3 <hujing3@lenovo.com> Reviewed-on: https://gerrit.mot.com/2278268 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
cc4f1a773d
commit
5f3dc5f3a1
3 changed files with 3 additions and 2 deletions
|
|
@ -686,7 +686,7 @@ static int fts_read_touchdata(struct fts_ts_data *ts_data, u8 *buf)
|
|||
int ret = 0;
|
||||
|
||||
ts_data->touch_addr = 0x01;
|
||||
FTS_DEBUG("touch_size=%d", ts_data->touch_size);
|
||||
//FTS_DEBUG("touch_size=%d", ts_data->touch_size);
|
||||
ret = fts_read(&ts_data->touch_addr, 1, buf, ts_data->touch_size);
|
||||
|
||||
if (((0xEF == buf[1]) && (0xEF == buf[2]) && (0xEF == buf[3]))
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@
|
|||
/*
|
||||
* For commnication error in PM(deep sleep) state
|
||||
*/
|
||||
#define FTS_PATCH_COMERR_PM 0
|
||||
#define FTS_PATCH_COMERR_PM 1
|
||||
#define FTS_TIMEOUT_COMERR_PM 700
|
||||
|
||||
#define FTS_REG_RETRY_TIMES 5
|
||||
|
|
|
|||
|
|
@ -351,6 +351,7 @@ static void fts_gesture_report(struct input_dev *input_dev, int gesture_id)
|
|||
input_sync(fts_data->sensor_pdata->input_sensor_dev);
|
||||
++report_cnt;
|
||||
} else {
|
||||
FTS_DEBUG("report_gesture_key not set, input_report_abs");
|
||||
input_report_abs(fts_data->sensor_pdata->input_sensor_dev,
|
||||
ABS_DISTANCE, ++report_cnt);
|
||||
input_sync(fts_data->sensor_pdata->input_sensor_dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue