Re: [PATCH v1.1 5/5] smiapp: Implement support for autosuspend

2016-09-23 Thread Sakari Ailus
Sebastian Reichel wrote: Hi, On Tue, Sep 20, 2016 at 03:29:58PM +0300, Sakari Ailus wrote: Delay suspending the device by 1000 ms by default. Signed-off-by: Sakari Ailus --- since v1: - Increment usage count before register write using pm_runtime_get_noresume(), and decrement it before r

Re: [PATCH v1.1 5/5] smiapp: Implement support for autosuspend

2016-09-22 Thread Sebastian Reichel
Hi, On Tue, Sep 20, 2016 at 03:29:58PM +0300, Sakari Ailus wrote: > Delay suspending the device by 1000 ms by default. > > Signed-off-by: Sakari Ailus > --- > > since v1: > > - Increment usage count before register write using > pm_runtime_get_noresume(), and decrement it before returning. T

[PATCH v1.1 5/5] smiapp: Implement support for autosuspend

2016-09-20 Thread Sakari Ailus
Delay suspending the device by 1000 ms by default. Signed-off-by: Sakari Ailus --- since v1: - Increment usage count before register write using pm_runtime_get_noresume(), and decrement it before returning. This avoids a serialisation problem with autosuspend. drivers/media/i2c/smiapp/smi