]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33361d9d7146f495a17e708e2e3220195548915a
tree8ce656efe379b9f382f38a1565f8bfd099294b8a
parent2dae2449eda671fb168e387fa0ce965b0587ff46
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