diff options
author | Lv Zheng <lv.zheng@intel.com> | 2013-10-10 10:28:47 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-11 00:23:14 (GMT) |
commit | a76e9bd89ae70fdfff5fd1ca47756a35d10c5f3f (patch) | |
tree | b6bfe78690931cf6c105841d6d622d405653688d /drivers/spi | |
parent | 644f17ad7fc12768cd619532383343e514eab2ac (diff) | |
download | linux-a76e9bd89ae70fdfff5fd1ca47756a35d10c5f3f.tar.xz |
i2c: attach/detach I2C client device to the ACPI power domain
If the I2C client device is enumerated from ACPI namespace it might have
ACPI methods that needs to be called in order to transition the device to
different power states (such as _PSx).
Implement this for I2C client devices by checking if the device has an ACPI
handle and if that's the case, attach it to the ACPI power domain. In
addition we make sure that the device is fully powered when its ->probe()
function gets called.
For non-ACPI devices this patch is a no-op.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions