Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-16 Thread Rafael J. Wysocki
On Thursday, July 16, 2015 10:47:51 AM Tomeu Vizoso wrote: > On 16 July 2015 at 02:41, Rafael J. Wysocki wrote: > > On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: > >> On Wed, 15 Jul 2015, Tomeu Vizoso wrote: > >> > >> > If a suitable prepare callback cannot be found for a given device

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-16 Thread Tomeu Vizoso
On 16 July 2015 at 02:41, Rafael J. Wysocki wrote: > On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: >> On Wed, 15 Jul 2015, Tomeu Vizoso wrote: >> >> > If a suitable prepare callback cannot be found for a given device and >> > its driver has no PM callbacks at all, assume that it can

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-16 Thread Tomeu Vizoso
On 16 July 2015 at 02:41, Rafael J. Wysocki r...@rjwysocki.net wrote: On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: On Wed, 15 Jul 2015, Tomeu Vizoso wrote: If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-16 Thread Rafael J. Wysocki
On Thursday, July 16, 2015 10:47:51 AM Tomeu Vizoso wrote: On 16 July 2015 at 02:41, Rafael J. Wysocki r...@rjwysocki.net wrote: On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: On Wed, 15 Jul 2015, Tomeu Vizoso wrote: If a suitable prepare callback cannot be found for a given

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-15 Thread Rafael J. Wysocki
On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: > On Wed, 15 Jul 2015, Tomeu Vizoso wrote: > > > If a suitable prepare callback cannot be found for a given device and > > its driver has no PM callbacks at all, assume that it can go direct to > > complete when the system goes to sleep. >

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-15 Thread Alan Stern
On Wed, 15 Jul 2015, Tomeu Vizoso wrote: > If a suitable prepare callback cannot be found for a given device and > its driver has no PM callbacks at all, assume that it can go direct to > complete when the system goes to sleep. > > The reason for this is that there's lots of devices in a system

[PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-15 Thread Tomeu Vizoso
If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that it can go direct to complete when the system goes to sleep. The reason for this is that there's lots of devices in a system that do no PM at all and there's no reason for them

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-15 Thread Alan Stern
On Wed, 15 Jul 2015, Tomeu Vizoso wrote: If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that it can go direct to complete when the system goes to sleep. The reason for this is that there's lots of devices in a system that

[PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-15 Thread Tomeu Vizoso
If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that it can go direct to complete when the system goes to sleep. The reason for this is that there's lots of devices in a system that do no PM at all and there's no reason for them

Re: [PATCH v4 2/3] PM / sleep: Go direct_complete if driver has no callbacks

2015-07-15 Thread Rafael J. Wysocki
On Wednesday, July 15, 2015 02:47:50 PM Alan Stern wrote: On Wed, 15 Jul 2015, Tomeu Vizoso wrote: If a suitable prepare callback cannot be found for a given device and its driver has no PM callbacks at all, assume that it can go direct to complete when the system goes to sleep. The