OSDN Git Service

mmc: tmio: Restructure ->set_ios() and adapt ->probe() to it
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 24 Oct 2013 15:53:15 +0000 (17:53 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:09 +0000 (13:59 +0200)
commit3b292bb0e99018c448e0f5a26c29c68113a1b7bf
tree844ec57428babaabd682421f042c2c4054b94dcf
parent9ae4ed7d30f433873351d5ba14ae000d10e10430
mmc: tmio: Restructure ->set_ios() and adapt ->probe() to it

An internal power state machine were beeing used to keep ->probe() and
->set_ios() in sync. Especially for handling specific scenarios while
using CONFIG_MMC_CLKGATE. Moreover dependency to CONFIG_MMC_CLKGATE
existed to handle runtime PM properly, which we moves away from here.

By removing the state machine and instead make ->set_ios() rely on the
information provided through the function's in-parameters, the code
becomes significantly simplier.

Additonally as a part of this rework we prepares for making the runtime
PM callbacks responsible of clock gating.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_pio.c