Re: [PATCH V2] PM / Runtime: Respect autosuspend when idle triggers suspend

2013-10-15 Thread Alan Stern
On Mon, 14 Oct 2013, Ulf Hansson wrote: For devices which don't have a .runtime_idle callback or if it returns 0, rpm_idle will end up in triggering a call to rpm_suspend, thus trying to carry out a runtime_suspend directly from runtime_idle. In the above situation we want to respect

[PATCH V2] PM / Runtime: Respect autosuspend when idle triggers suspend

2013-10-14 Thread Ulf Hansson
For devices which don't have a .runtime_idle callback or if it returns 0, rpm_idle will end up in triggering a call to rpm_suspend, thus trying to carry out a runtime_suspend directly from runtime_idle. In the above situation we want to respect devices which has enabled autosuspend, we therfore

Re: [PATCH V2] PM / Runtime: Respect autosuspend when idle triggers suspend

2013-10-14 Thread Kevin Hilman
Ulf Hansson ulf.hans...@linaro.org writes: For devices which don't have a .runtime_idle callback or if it returns 0, rpm_idle will end up in triggering a call to rpm_suspend, thus trying to carry out a runtime_suspend directly from runtime_idle. In the above situation we want to respect