Input: ti_am335x_tsc - ack pending IRQs at probe and before suspend
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 30 May 2018 21:23:15 +0000 (14:23 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 May 2018 23:42:12 +0000 (16:42 -0700)
commit46850420e5e2330781aae5ff30cf19392d49979e
tree8ce656efe379b9f382f38a1565f8bfd099294b8a
parent38ba34a43dbc00c87d13d1c4b6d0719a2ac87b2e
Input: ti_am335x_tsc - ack pending IRQs at probe and before suspend

It is seen that just enabling the TSC module triggers a HW_PEN IRQ
without any interaction with touchscreen by user. This results in first
suspend/resume sequence to fail as system immediately wakes up from
suspend as soon as HW_PEN IRQ is enabled in suspend handler due to the
pending IRQ. Therefore clear all IRQs at probe and also in suspend
callback for sanity.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ti_am335x_tsc.c