mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Berlin Row - Avoid fts_tp continuous wakeups
Keep stay awake to avoid device suspend and additional check senser_sleep for pm suspend. Porting of https://android.googlesource.com/kernel/msm-modules/fts_touch/+/b80139cb3eb11e1fccaafeb0bf5bfb823d5ca027%5E%21/#F0 Change-Id: Ifc508aa4481f851ac3f9d1b1a5040d0d5e69ac78 Reviewed-on: https://gerrit.mot.com/2642844 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Rafael Ortolan <rafones@motorola.com> Reviewed-by: <zhuwg1@motorola.com> Reviewed-by: Jichao Zou <zoujc@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
d8037661fe
commit
b27503a054
1 changed files with 2 additions and 1 deletions
|
|
@ -3639,11 +3639,12 @@ static void inline fts_resume_work(struct work_struct *work)
|
|||
void fts_suspend_func(struct fts_ts_info *info)
|
||||
{
|
||||
logError(1, "%s %s: enter\n", tag, __func__);
|
||||
PM_WAKEUP_EVENT(info->wakesrc, jiffies_to_msecs(HZ));
|
||||
PM_STAY_AWAKE(info->wakesrc);
|
||||
info->resume_bit = 0;
|
||||
fts_mode_handler(info, 0);
|
||||
release_all_touches(info);
|
||||
info->sensor_sleep = true;
|
||||
PM_RELAX(info->wakesrc);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue