diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2015-07-27 17:03:57 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-07-28 09:50:42 +0200 |
commit | 712e960f0ee9337f3473ba3de2bcfc7e87b7c5a4 (patch) | |
tree | 13e6d1dffce17d0c4cc466e484599cfc38994a05 /drivers/acpi/internal.h | |
parent | PM / QoS: Make it possible to expose device latency tolerance to userspace (diff) | |
download | linux-712e960f0ee9337f3473ba3de2bcfc7e87b7c5a4.tar.xz linux-712e960f0ee9337f3473ba3de2bcfc7e87b7c5a4.zip |
ACPI / PM: Attach ACPI power domain only once
Some devices, like MFD subdevices, share a single ACPI companion device so
that they are able to access their resources and children. However,
currently all these subdevices are attached to the ACPI power domain and
this might cause that the power methods for the companion device get called
more than once.
In order to solve this we attach the ACPI power domain only to the first
physical device that is bound to the ACPI companion device. In case of MFD
devices, this is the parent MFD device itself.
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 4683a96932b9..f6aefe984941 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h @@ -97,6 +97,8 @@ void acpi_device_add_finalize(struct acpi_device *device); void acpi_free_pnp_ids(struct acpi_device_pnp *pnp); bool acpi_device_is_present(struct acpi_device *adev); bool acpi_device_is_battery(struct acpi_device *adev); +bool acpi_device_is_first_physical_node(struct acpi_device *adev, + const struct device *dev); /* -------------------------------------------------------------------------- Power Resource |