Input: ti_am335x_tsc - prevent system suspend when TSC is in use
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 30 May 2018 21:25:21 +0000 (14:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 May 2018 23:42:12 +0000 (16:42 -0700)
commit22a844b853684a9f6088ede15114f8b286b49560
treecc4ce911ace9d9c8758ed21d3371e71919acbc23
parent46850420e5e2330781aae5ff30cf19392d49979e
Input: ti_am335x_tsc - prevent system suspend when TSC is in use

Prevent system suspend while user has finger on touch screen,
because TSC is wakeup source and suspending device while in use will
result in failure to disable the module.
This patch uses pm_stay_awake() and pm_relax() APIs to prevent and
resume system suspend as required.

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