ARM: 7832/1: mmc: mmci: Use optional sleep pinctrl state
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Sep 2013 08:00:37 +0000 (09:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Sep 2013 19:12:24 +0000 (20:12 +0100)
commite36bd9c6c99f47902d6fd6804730aa587ae275a0
tree6426b0df30b5fe3f5e58bd184c20f265b8609b33
parentedaf6d3d264ae9323a53a49b2a1cf42cc5df1be2
ARM: 7832/1: mmc: mmci: Use optional sleep pinctrl state

By optionally putting the pins into sleep state in the .runtime_suspend
callback we can accomplish two things. One is to minimize current leakage
from pins and thus save power, second we can prevent the IP from driving
pins output in an uncontrolled manner, which may happen if the power domain
drops the domain regulator.

When returning from idle, entering .runtime_resume callback, the pins
are restored to default state.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Rickard Andersson <rickard.andersson@stericsson.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c