input: ets_fpc_mmi: fix wakelock timeout value.

When interrupt comes, kernel need take 1500ms wakelock, make sure HAL
can handle this interrupt.
If CONDIF_HAS_WAKELOCK is not definded, __pm_wakeup_event is called.
For this function, seconed parameter is msecs value, so do not translate
this value by using msecs_to_jiffies.

Change-Id: I198e145a118f886676027df2fd966df169530604
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1418021
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2019-09-09 16:48:38 +08:00 • committed by Jialei Hao
commit 471271e046

View file

@ -241,7 +241,7 @@ static irqreturn_t fp_eint_func(int irq, void *dev_id)
#ifdef CONFIG_HAS_WAKELOCK
wake_lock_timeout(&ets_wake_lock, msecs_to_jiffies(1500));
#else
__pm_wakeup_event(&ets_wake_lock, msecs_to_jiffies(1500));
__pm_wakeup_event(&ets_wake_lock, 1500);
#endif
#ifdef CONFIG_DISPLAY_SPEED_UP
if (is_auth_ready) {
@ -265,7 +265,7 @@ static irqreturn_t fp_eint_func_ll(int irq, void *dev_id)
#ifdef CONFIG_HAS_WAKELOCK
wake_lock_timeout(&ets_wake_lock, msecs_to_jiffies(1500));
#else
__pm_wakeup_event(&ets_wake_lock, msecs_to_jiffies(1500));
__pm_wakeup_event(&ets_wake_lock, 1500);
#endif
return IRQ_RETVAL(IRQ_HANDLED);
}