diff options
author | Lina Iyer <lina.iyer@linaro.org> | 2016-10-24 17:38:47 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-10-24 17:48:22 -0400 |
commit | 411bf2a8db76d7ed6f710df77121e5113ee8fe64 (patch) | |
tree | a31018fadf532930745d47525d867c5c5764fe15 | |
parent | d716f4798ff8c65ace4a6ab291f9a4ff265df4ba (diff) |
PM / doc: Update device documentation for devices in IRQ-safe PM domains
Update documentation to reflect the changes made to support IRQ safe PM
domains.
Suggested-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | Documentation/power/devices.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Documentation/power/devices.txt b/Documentation/power/devices.txt index 8ba6625fdd63..73ddea39a9ce 100644 --- a/Documentation/power/devices.txt +++ b/Documentation/power/devices.txt | |||
@@ -607,7 +607,9 @@ individually. Instead, a set of devices sharing a power resource can be put | |||
607 | into a low-power state together at the same time by turning off the shared | 607 | into a low-power state together at the same time by turning off the shared |
608 | power resource. Of course, they also need to be put into the full-power state | 608 | power resource. Of course, they also need to be put into the full-power state |
609 | together, by turning the shared power resource on. A set of devices with this | 609 | together, by turning the shared power resource on. A set of devices with this |
610 | property is often referred to as a power domain. | 610 | property is often referred to as a power domain. A power domain may also be |
611 | nested inside another power domain. The nested domain is referred to as the | ||
612 | sub-domain of the parent domain. | ||
611 | 613 | ||
612 | Support for power domains is provided through the pm_domain field of struct | 614 | Support for power domains is provided through the pm_domain field of struct |
613 | device. This field is a pointer to an object of type struct dev_pm_domain, | 615 | device. This field is a pointer to an object of type struct dev_pm_domain, |
@@ -629,6 +631,16 @@ support for power domains into subsystem-level callbacks, for example by | |||
629 | modifying the platform bus type. Other platforms need not implement it or take | 631 | modifying the platform bus type. Other platforms need not implement it or take |
630 | it into account in any way. | 632 | it into account in any way. |
631 | 633 | ||
634 | Devices may be defined as IRQ-safe which indicates to the PM core that their | ||
635 | runtime PM callbacks may be invoked with disabled interrupts (see | ||
636 | Documentation/power/runtime_pm.txt for more information). If an IRQ-safe | ||
637 | device belongs to a PM domain, the runtime PM of the domain will be | ||
638 | disallowed, unless the domain itself is defined as IRQ-safe. However, it | ||
639 | makes sense to define a PM domain as IRQ-safe only if all the devices in it | ||
640 | are IRQ-safe. Moreover, if an IRQ-safe domain has a parent domain, the runtime | ||
641 | PM of the parent is only allowed if the parent itself is IRQ-safe too with the | ||
642 | additional restriction that all child domains of an IRQ-safe parent must also | ||
643 | be IRQ-safe. | ||
632 | 644 | ||
633 | Device Low Power (suspend) States | 645 | Device Low Power (suspend) States |
634 | --------------------------------- | 646 | --------------------------------- |