]> 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)
commit60bc5d89a6306dd90ee9b616d61448e6dbc33f47
treecc4ce911ace9d9c8758ed21d3371e71919acbc23
parent543d765943aef6f6725291ff0c4490dfe57c9db8
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