diff options
author | Johan Hovold <johan@kernel.org> | 2017-07-24 05:53:56 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-27 17:57:40 -0400 |
commit | c3bf5bb521907e7b5a574ae7a2734df3acb11c2f (patch) | |
tree | 7099c47d625414db7521b73a0e0ed5624cc3cd1b | |
parent | 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 (diff) |
PM / runtime: Document new pm_runtime_set_suspended() constraint
Since commit a8636c89648a (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>
-rw-r--r-- | Documentation/power/runtime_pm.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/power/runtime_pm.txt b/Documentation/power/runtime_pm.txt index 0fde3dcf077a..625549d4c74a 100644 --- a/Documentation/power/runtime_pm.txt +++ b/Documentation/power/runtime_pm.txt | |||
@@ -435,7 +435,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h: | |||
435 | PM status to 'suspended' and update its parent's counter of 'active' | 435 | PM status to 'suspended' and update its parent's counter of 'active' |
436 | children as appropriate (it is only valid to use this function if | 436 | children as appropriate (it is only valid to use this function if |
437 | 'power.runtime_error' is set or 'power.disable_depth' is greater than | 437 | '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 | ||
439 | 440 | ||
440 | bool pm_runtime_active(struct device *dev); | 441 | bool pm_runtime_active(struct device *dev); |
441 | - return true if the device's runtime PM status is 'active' or its | 442 | - return true if the device's runtime PM status is 'active' or its |