OpenCloudOS-Kernel/Documentation/power
Rafael J. Wysocki f8817f61e8 PM / runtime: Drop children check from __pm_runtime_set_status()
The check for "active" children in __pm_runtime_set_status(), when
trying to set the parent device status to "suspended", doesn't
really make sense, because in fact it is not invalid to set the
status of a device with runtime PM disabled to "suspended" in any
case.  It is invalid to enable runtime PM for a device with its
status set to "suspended" while its child_count reference counter
is nonzero, but the check in __pm_runtime_set_status() doesn't
really cover that situation.

For this reason, drop the children check from __pm_runtime_set_status()
and add a check against child_count reference counters of "suspended"
devices to pm_runtime_enable().

Fixes: a8636c8964 (PM / Runtime: Don't allow to suspend a device with an active child)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
2017-11-16 22:51:22 +01:00
..
powercap PowerCap: Documentation 2013-10-17 00:36:06 +02:00
regulator regulator: Rename regulator_set_optimum_mode 2015-03-09 18:32:25 +00:00
00-INDEX PM / sleep / docs: Convert PM notifiers document to reST 2017-02-06 11:26:02 -07:00
apm-acpi.txt
basic-pm-debugging.txt PM / sleep: Update some system sleep documentation 2016-08-13 02:54:04 +02:00
charger-manager.txt Documentation: Charger Manager: Fix spelling mistakes 2014-09-16 11:01:27 +02:00
drivers-testing.txt
freezing-of-tasks.txt PM / sleep / docs: Convert PM notifiers document to reST 2017-02-06 11:26:02 -07:00
interface.txt Documentation: fix ref to power basic-pm-debugging 2017-10-19 12:57:58 -06:00
opp.txt PM / OPP: Update Documentation to remove RCU specific bits 2017-01-30 09:22:23 +01:00
pci.txt Power management updates for v4.15-rc1 2017-11-13 19:43:50 -08:00
pm_qos_interface.txt PM / QoS: Drop PM_QOS_FLAG_REMOTE_WAKEUP 2017-10-14 01:04:31 +02:00
power_supply_class.txt power: supply: core: Add power_supply_prop_precharge 2017-06-08 16:29:28 +02:00
runtime_pm.txt PM / runtime: Drop children check from __pm_runtime_set_status() 2017-11-16 22:51:22 +01:00
s2ram.txt PM / sleep: Mention async suspend in PM_TRACE documentation 2015-01-30 01:29:46 +01:00
suspend-and-cpuhotplug.txt cpu/hotplug: Get rid of CPU hotplug notifier leftovers 2017-11-13 10:03:53 +01:00
suspend-and-interrupts.txt genirq / PM: describe IRQF_COND_SUSPEND 2015-03-06 01:28:14 +01:00
swsusp-and-swap-files.txt
swsusp-dmcrypt.txt docs: fix locations of several documents that got moved 2016-10-24 08:12:35 -02:00
swsusp.txt docs-rst: fix usb cross-references 2017-04-11 14:41:29 -06:00
tricks.txt
userland-swsusp.txt Documentation: power: Fix typo in Documentation/power 2014-11-08 09:15:14 -05:00
video.txt