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