ARM: 7223/1: mmc: mmci: Fixup use of runtime PM and use autosuspend
authorUlf Hansson <ulf.hansson@stericsson.com>
Tue, 13 Dec 2011 16:01:11 +0000 (17:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 20 Jan 2012 00:00:58 +0000 (00:00 +0000)
commit2cd976c46472e34460349ed43a217e34f90bad55
treeb3dc1b537ee5c99f565ea1b5ba4fc571f3f7525e
parent48fa700388bec2ba79e9c8cc087f39c800a6fff5
ARM: 7223/1: mmc: mmci: Fixup use of runtime PM and use autosuspend

Added use of runtime PM autosuspend feature, with a fixed
timeout of 50 ms. This will prevent adding a latency,
although very minor, for _every_ request.

Moreover the runtime_get_sync is now also used in set_ios and
suspend since the runtime resourses are needed here as well.

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