Skip to content

Commit c3bf5bb

Browse files
jhovoldrafaeljw
authored andcommitted
PM / runtime: Document new pm_runtime_set_suspended() constraint
Since commit a8636c8 (PM / Runtime: Don't allow to suspend a device with an active child) it is no longer permitted to set RPM_SUSPENDED state for a device with active children unless power.ignore_children is set. Update the documentation to reflect this. Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 520eccd commit c3bf5bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/power/runtime_pm.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
435435
PM status to 'suspended' and update its parent's counter of 'active'
436436
children as appropriate (it is only valid to use this function if
437437
'power.runtime_error' is set or 'power.disable_depth' is greater than
438-
zero)
438+
zero); it will fail and return an error code if the device has a child
439+
which is active and the 'power.ignore_children' flag is unset
439440

440441
bool pm_runtime_active(struct device *dev);
441442
- return true if the device's runtime PM status is 'active' or its

0 commit comments

Comments
 (0)