]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/pl022: Activate resourses before deactivate them in suspend
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 17 Oct 2012 12:27:16 +0000 (14:27 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 13:14:24 +0000 (22:14 +0900)
commit4964a26df72c4a82e56c6b40818648d54bde93cc
treeeb20938684cf5dac86c64751dae83c1b2957a008
parent0df349945752bf04cee52babf266bbf1f4812193
spi/pl022: Activate resourses before deactivate them in suspend

To be able to deactivate resourses in suspend, the resourses must
first be surely active. This is done with a pm_runtime_get_sync.
Once the resourses are restored to active state again in resume,
the runtime pm usage count can be decreased with a pm_runtime_put.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-pl022.c