spi/pl022: add IDLE state pin management
authorPatrice Chotard <patrice.chotard@stericsson.com>
Wed, 17 Oct 2012 12:27:24 +0000 (14:27 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 13:14:25 +0000 (22:14 +0900)
commitd8f18420c552de6d38e5464074133e0e9730abcd
tree2fa18925654779319b0ca85cbdda36ecba6fc1bc
parent4964a26df72c4a82e56c6b40818648d54bde93cc
spi/pl022: add IDLE state pin management

This commit allow to put pins in IDLE state in
runtime_suspend and in SLEEP state in suspend, corresponding
to defined semantics in <linux/pinctrl/pinctrl-state.h>.

To do this, just add a boolean parameter runtime
to pl022_resume_resources/pl022_suspend_resources which
indicates if it's called from PM_RUNTIME callbacks or not.

Signed-off-by: Patrice Chotard <patrice.chotard@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-pl022.c