]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PM / sleep: Allow devices without runtime PM to do direct-complete
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 15 Jul 2015 12:40:06 +0000 (14:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 21 Jul 2015 21:14:22 +0000 (23:14 +0200)
commit019d8817b1b064c2bacfbcf40fc68184438ad05a
treef6ac6a9eba69331a3341fa8c85f49d99a912bc41
parent6ce12a977b7e484540482febe47d1e65f7427abf
PM / sleep: Allow devices without runtime PM to do direct-complete

Don't unset the direct_complete flag on devices that have runtime PM
disabled, if they are runtime suspended.

This is needed because otherwise ancestor devices wouldn't be able to
do direct_complete without adding runtime PM support to all its
descendants.

Also removes pm_runtime_suspended_if_enabled() because it's now unused.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/power/devices.txt
Documentation/power/runtime_pm.txt
drivers/base/power/main.c
include/linux/pm_runtime.h