Re: [PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-17 Thread Vignesh R
On Monday 16 April 2018 11:31 PM, Dmitry Torokhov wrote: > On Sat, Apr 14, 2018 at 03:21:53PM +0530, Vignesh R wrote: >> From: Grygorii Strashko >> >> Prevent system suspend while user has finger on touch screen, >> because TSC is wakeup source and suspending device

Re: [PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-17 Thread Vignesh R
On Monday 16 April 2018 11:31 PM, Dmitry Torokhov wrote: > On Sat, Apr 14, 2018 at 03:21:53PM +0530, Vignesh R wrote: >> From: Grygorii Strashko >> >> Prevent system suspend while user has finger on touch screen, >> because TSC is wakeup source and suspending device while in use will >> result

Re: [PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-16 Thread Dmitry Torokhov
On Sat, Apr 14, 2018 at 03:21:53PM +0530, Vignesh R wrote: > From: Grygorii Strashko > > 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. >

Re: [PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-16 Thread Dmitry Torokhov
On Sat, Apr 14, 2018 at 03:21:53PM +0530, Vignesh R wrote: > From: Grygorii Strashko > > 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

[PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-14 Thread Vignesh R
From: Grygorii Strashko 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

[PATCH v2 3/3] Input: ti_am335x_tsc - Prevent system suspend when TSC is in use

2018-04-14 Thread Vignesh R
From: Grygorii Strashko 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