From: Lv Zheng Date: Thu, 10 Oct 2013 10:28:47 +0000 (+0300) Subject: i2c: attach/detach I2C client device to the ACPI power domain X-Git-Tag: v3.13-rc1~96^2~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a76e9bd89ae7;p=pandora-kernel.git 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 Signed-off-by: Mika Westerberg Acked-by: Wolfram Sang Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed