input: touchscreen: cyttsp5: stay awake in irq_handler process

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I4761fa76f6cd0219582d579167f0288b7a28f73c
This commit is contained in:
Weixin Zhou
2021-01-16 10:31:18 +08:00
committed by Tao Huang
parent 59ed90e947
commit 2b95a7032b

View File

@@ -4078,10 +4078,14 @@ static irqreturn_t cyttsp5_irq(int irq, void *handle)
if (!cyttsp5_check_irq_asserted(cd))
return IRQ_HANDLED;
pm_stay_awake(cd->dev);
rc = cyttsp5_read_input(cd);
if (!rc)
cyttsp5_parse_input(cd);
pm_relax(cd->dev);
return IRQ_HANDLED;
}