OSDN Git Service

mmc: tmio: move runtime PM enablement to the driver implementations
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 10 Apr 2019 22:22:40 +0000 (00:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2019 15:09:56 +0000 (17:09 +0200)
commit7ff213193310ef8d0ee5f04f79d791210787ac2c
tree65ed947c776ad42451f96eb625332c8a4cecb161
parentfdc4e755f6c516e526dd9396b6eb05712c44fb65
mmc: tmio: move runtime PM enablement to the driver implementations

Both the Renesas and Uniphier implementations perform actions which
affect runtime PM before calling into the core tmio_mmc_host_probe()
which enabled runtime PM. Move pm_runtime_enable() from the core and
tmio_mmc_host_probe() into each drivers probe() so it can be called
before any clocks or other resources are switched on.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.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