spi: pl022: Don't ignore power domain and amba bus at system suspend
authorUlf Hansson <ulf.hansson@linaro.org>
Sat, 1 Mar 2014 10:56:07 +0000 (11:56 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 6 Mar 2014 04:44:48 +0000 (12:44 +0800)
commit84a5dc41f64faadb79cde600b130c8cbd7e21977
tree281812efcb7a1c3fd46ec0b658062cfee366cf52
parent736198b0486c8d5032456de0813515d954df978a
spi: pl022: Don't ignore power domain and amba bus at system suspend

Previously only the resources controlled by the driver were put into
low power state at system suspend. Both the amba bus and a potential
power domain were ignored.

Moreover, while putting the device into low power state we first
brought it back to full power, but for no particular reason.

To handle both issues above, use pm_runtime_force_suspend|resume() from
the system suspend|resume callbacks.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-pl022.c