mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
input: goodix_v1510: fix irq wake disable unbalanced issue
- make irq wake enable and disable match, fix unbalanced issue - port https://gerrit.mot.com/#/c/2158726/, increase i2c try times - port goodix latest 1.5.2 version, sync input event when suspend. Change-Id: I6e5639356db18e37698ff0b6e8101e5b4a724143 Signed-off-by: wangyq13 <wangyq13@lenovo.com> Reviewed-on: https://gerrit.mot.com/2169342 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong <litong20@motorola.com> Reviewed-by: Jun Weng <wengjun1@motorola.com> Reviewed-by: Jichao Zou <zoujc@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
a67332ded1
commit
d08495df99
3 changed files with 2 additions and 5 deletions
|
|
@ -1870,7 +1870,7 @@ static void goodix_ts_release_connects(struct goodix_ts_core *core_data)
|
|||
false);
|
||||
}
|
||||
input_report_key(input_dev, BTN_TOUCH, 0);
|
||||
/* input_mt_sync_frame(input_dev); */
|
||||
input_mt_sync_frame(input_dev);
|
||||
input_sync(input_dev);
|
||||
}
|
||||
}
|
||||
|
|
@ -2022,7 +2022,6 @@ static int goodix_ts_resume(struct goodix_ts_core *core_data)
|
|||
mutex_unlock(&goodix_modules.mutex);
|
||||
|
||||
goodix_ts_irq_enable(core_data, true);
|
||||
disable_irq_wake(core_data->irq);
|
||||
|
||||
/*
|
||||
* notify resume event, inform the esd protector
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
#define GOODIX_CORE_DRIVER_NAME "goodix_ts"
|
||||
#define GOODIX_PEN_DRIVER_NAME "goodix_ts,pen"
|
||||
#define GOODIX_DRIVER_VERSION "v1.5.1.0"
|
||||
#define GOODIX_BUS_RETRY_TIMES 3
|
||||
#define GOODIX_BUS_RETRY_TIMES 20
|
||||
#define GOODIX_MAX_TOUCH 10
|
||||
#define GOODIX_CFG_MAX_SIZE 4096
|
||||
#define GOODIX_ESD_TICK_WRITE_DATA 0xAA
|
||||
|
|
|
|||
|
|
@ -416,8 +416,6 @@ int gsx_gesture_before_suspend_mmi(struct goodix_ts_core *core_data)
|
|||
else
|
||||
ts_err("Set IC in gesture mode");
|
||||
|
||||
enable_irq_wake(core_data->irq);
|
||||
|
||||
return EVT_CANCEL_SUSPEND;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue