summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-10-10 10:28:47 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-11 00:23:14 (GMT)
commita76e9bd89ae70fdfff5fd1ca47756a35d10c5f3f (patch)
treeb6bfe78690931cf6c105841d6d622d405653688d /drivers/spi
parent644f17ad7fc12768cd619532383343e514eab2ac (diff)
downloadlinux-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