diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-10-10 14:28:48 +0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-11 04:23:14 +0400 |
commit | 33cf00e5708290f7e57d949219ef443a2aef34e0 (patch) | |
tree | 9099e5cc31154c90472b2afbeaf72e3df786d309 /drivers/acpi | |
parent | a76e9bd89ae70fdfff5fd1ca47756a35d10c5f3f (diff) | |
download | linux-33cf00e5708290f7e57d949219ef443a2aef34e0.tar.xz |
spi: attach/detach SPI device to the ACPI power domain
If the SPI device is enumerated from ACPI namespace (it has an ACPI handle)
it might have ACPI methods that needs to be called in order to transition
the device to different power states (such as _PSx).
We follow what has been done for platform and I2C buses here and attach the
SPI device to the ACPI power domain if the device has an ACPI handle. This
makes sure that the device is powered on when its ->probe() is called.
For non-ACPI devices this patch is a no-op.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions