From ae9bfff2a15f4399a37968a2a7e9fb92e80c55de Mon Sep 17 00:00:00 2001 From: Ritesh Kumar Date: Mon, 5 Apr 2021 09:13:11 +0530 Subject: [PATCH] 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 --- drivers/input/touchscreen/nt36xxx/nt36xxx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen/nt36xxx/nt36xxx.c b/drivers/input/touchscreen/nt36xxx/nt36xxx.c index 34afa81863ad..0f8389ff0d4e 100644 --- a/drivers/input/touchscreen/nt36xxx/nt36xxx.c +++ b/drivers/input/touchscreen/nt36xxx/nt36xxx.c @@ -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