提交 c3bf5bb5 编写于 作者: J Johan Hovold 提交者: Rafael J. Wysocki

PM / runtime: Document new pm_runtime_set_suspended() constraint

Since commit a8636c89 (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: NJohan Hovold <johan@kernel.org>
Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 520eccdf
...@@ -435,7 +435,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h: ...@@ -435,7 +435,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
PM status to 'suspended' and update its parent's counter of 'active' PM status to 'suspended' and update its parent's counter of 'active'
children as appropriate (it is only valid to use this function if children as appropriate (it is only valid to use this function if
'power.runtime_error' is set or 'power.disable_depth' is greater than 'power.runtime_error' is set or 'power.disable_depth' is greater than
zero) zero); it will fail and return an error code if the device has a child
which is active and the 'power.ignore_children' flag is unset
bool pm_runtime_active(struct device *dev); bool pm_runtime_active(struct device *dev);
- return true if the device's runtime PM status is 'active' or its - return true if the device's runtime PM status is 'active' or its
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册