mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
input: touchscreen: nt36xxx: fix irq enable/disable sequence
This change fixes touch irq enable/disable sequence during suspend resume. Change-Id: Icc793c96fd86b8c6cf3d2a4d024d86cd9e322f5b Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
This commit is contained in:
parent
3ecdedce1b
commit
ae9bfff2a1
1 changed files with 4 additions and 0 deletions
|
|
@ -1224,6 +1224,8 @@ static void nvt_irq_enable(bool enable)
|
|||
/* trusted_touch_underway is set in LA only */
|
||||
if (atomic_read(&ts->trusted_touch_underway))
|
||||
enable_irq_wake(ts->client->irq);
|
||||
else
|
||||
enable_irq(ts->client->irq);
|
||||
#else
|
||||
enable_irq(ts->client->irq);
|
||||
#endif
|
||||
|
|
@ -1234,6 +1236,8 @@ static void nvt_irq_enable(bool enable)
|
|||
#ifdef CONFIG_NOVATEK_TRUSTED_TOUCH
|
||||
if (atomic_read(&ts->trusted_touch_underway))
|
||||
disable_irq_wake(ts->client->irq);
|
||||
else
|
||||
disable_irq(ts->client->irq);
|
||||
#else
|
||||
disable_irq(ts->client->irq);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue