Revert "mmc: tmio: move runtime PM enablement to the driver implementations"
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Sep 2019 08:03:15 +0000 (10:03 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Sep 2019 11:48:35 +0000 (13:48 +0200)
commit8861474a105c91e812d38cd65d3be795c7f32c4f
treebc2999c029207a93fb1f32ac2153316ea46f97c5
parent49baa01c8b99ef92958e18fb58ebeb5dfdcde8af
Revert "mmc: tmio: move runtime PM enablement to the driver implementations"

This reverts commit 7ff213193310ef8d0ee5f04f79d791210787ac2c.

It turns out that the above commit introduces other problems. For example,
calling pm_runtime_set_active() must not be done prior calling
pm_runtime_enable() as that makes it fail. This leads to additional
problems, such as clock enables being wrongly balanced.

Rather than fixing the problem on top, let's start over by doing a revert.

Fixes: 7ff213193310 ("mmc: tmio: move runtime PM enablement to the driver implementations")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/tmio_mmc.c
drivers/mmc/host/tmio_mmc_core.c
drivers/mmc/host/uniphier-sd.c