]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit548863f399dcbae065839e095290dbfac4d3e245
treeb3dc1b537ee5c99f565ea1b5ba4fc571f3f7525e
parentfefbffa8741bf49b64444a86e9074f0f1095769e
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