aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acpiosxf.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2019-06-25 13:29:41 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-06-27 12:31:57 +0200
commit4533771c1e53b921f66e580135ee64a76986a491 (patch)
treee3da8ee3143c1ebbcfaf7d66be3601c1a040eec9 /include/acpi/acpiosxf.h
parentPCI / ACPI: Use cached ACPI device state to get PCI device power state (diff)
downloadlinux-dev-4533771c1e53b921f66e580135ee64a76986a491.tar.xz
linux-dev-4533771c1e53b921f66e580135ee64a76986a491.zip
ACPI / PM: Introduce concept of a _PR0 dependent device
If there are shared power resources between otherwise unrelated devices turning them on causes the other devices sharing them to be powered up as well. In case of PCI devices go into D0uninitialized state meaning that if they were configured to trigger wake that configuration is lost at this point. For this reason introduce a concept of "_PR0 dependent device" that can be added to any ACPI device that has power resources. The dependent device will be included in a list of dependent devices for all power resources returned by the ACPI device's _PR0 (assuming it has one). Whenever a power resource having dependent devices is turned physically on (its _ON method is called) we runtime resume all of them to allow their driver or in case of PCI the PCI core to re-initialize the device and its wake configuration. This adds two functions that can be used to add and remove these dependent devices. Note the dependent device does not necessary need share power resources so this functionality can be used to add "software dependencies" as well if needed. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpiosxf.h')
0 files changed, 0 insertions, 0 deletions