Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1239506
| From | Tomeu Vizoso <tomeu.vizoso@collabora.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks |
| Date | 2015-10-05 14:30 +0200 |
| Message-ID | <qgd3Y-7eX-25@gated-at.bofh.it> (permalink) |
| References | <qf2Nj-4OQ-11@gated-at.bofh.it> <qf3Jn-69x-3@gated-at.bofh.it> <qf4cp-6Hz-7@gated-at.bofh.it> <qf8pI-4pZ-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2 October 2015 at 15:42, Rafael J. Wysocki <rjw@rjwysocki.net> wrote: > On Friday, October 02, 2015 10:40:49 AM Ulf Hansson wrote: >> On 2 October 2015 at 10:10, Tomeu Vizoso <tomeu.vizoso@collabora.com> wrote: >> > On 2 October 2015 at 09:48, Ulf Hansson <ulf.hansson@linaro.org> wrote: >> >> On 2 October 2015 at 09:14, Tomeu Vizoso <tomeu.vizoso@collabora.com> 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 do >> >>> no PM at all and there's no reason for them to prevent their ancestors >> >>> to do direct_complete if they can support it. >> >>> >> >>> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> >> >>> --- >> >>> >> >>> Changes in v8: >> >>> - Move no_pm_callbacks field into CONFIG_PM_SLEEP >> >>> - Call device_check_pm_callbacks only after a device is bound or unbound >> >> >> >> Devices that don't use a driver, will not get this feature for "free". >> >> I expect in those cases, they will have to call >> >> device_check_pm_callbacks() themselves, right? >> > >> > You are right, but wonder if we shouldn't go back to calling >> > device_check_pm_callbacks() from device_pm_add() and >> > dev_pm_domain_set() so they don't have to. >> >> That seems reasonable to me, and I didn't quite understand why you >> decided to remove it. :-) > > Right. > > device_check_pm_callbacks() needs to be called on device registration too > (in case the device doesn't have a driver and doesn't use a PM domain) and > it won't hurt to call it in dev_pm_domain_set() either, although that likely > will be redundant in the majority of cases. I got it. I misunderstood your comment from the other day. Thanks, Tomeu > Thanks, > Rafael > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v8 0/4] Allow USB devices to remain runtime-suspended when sleeping Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-10-02 09:20 +0200
[PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-10-02 09:20 +0200
Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks Ulf Hansson <ulf.hansson@linaro.org> - 2015-10-02 09:50 +0200
Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-10-02 10:20 +0200
Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks Ulf Hansson <ulf.hansson@linaro.org> - 2015-10-02 10:50 +0200
Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-10-02 15:20 +0200
Re: [PATCH v8 3/4] PM / sleep: Go direct_complete if driver has no callbacks Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-10-05 14:30 +0200
[PATCH v8 2/4] PM / Domains: add setter for dev.pm_domain Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-10-02 09:20 +0200
[PATCH v8 4/4] USB / PM: Allow USB devices to remain runtime-suspended when sleeping Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2015-10-02 09:20 +0200
csiph-web