]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05124a75fdd3becc261c4ede874acd87eaa84306
treecc4ce911ace9d9c8758ed21d3371e71919acbc23
parent33361d9d7146f495a17e708e2e3220195548915a
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