]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sunxi: Add runtime_pm support
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 14:23:04 +0000 (16:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:42 +0000 (15:08 +0200)
commit0e758c89aff8b29e3dfd4376717023c780edbfc3
tree3373cbfc8e217bc59acc64721f2a19279e8ba766
parentd8b323093e1f3c7c9b057506b218164aa4a0607a
mmc: sunxi: Add runtime_pm support

So far, even if our card was not in use, we didn't shut down our MMC
controller, which meant that it was still active and clocking the bus.

While this obviously means that we could save some power there, it also
creates issues when it comes to EMC control since we'll have a perfect peak
at the card clock rate.

Let's implement runtime_pm with autosuspend so that we will shut down the
controller when it's not been in use for quite some time.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c