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

2013-10-16 Thread Ulf Hansson
On 16 October 2013 02:21, Rafael J. Wysocki r...@rjwysocki.net wrote: On Tuesday, October 15, 2013 04:43:38 PM Alan Stern wrote: On Tue, 15 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

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

2013-10-15 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 V3] PM / Runtime: Respect autosuspend when idle triggers suspend

2013-10-15 Thread Alan Stern
On Tue, 15 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

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

2013-10-15 Thread Rafael J. Wysocki
On Tuesday, October 15, 2013 04:43:38 PM Alan Stern wrote: On Tue, 15 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