]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Make sure we only adjust the clock when power is on
authorDoug Anderson <dianders@chromium.org>
Fri, 20 Feb 2015 18:57:18 +0000 (10:57 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:29 +0000 (14:13 +0100)
commite69bf4335a22befb174cd0d339bc8dfc1adb1d8d
tree0e5365efd7a6f71b43dca019b2427772753aefab
parent051b179cf48d6f95a2ab83ef2989ec33bf51a122
mmc: dw_mmc: Make sure we only adjust the clock when power is on

It appears that we can confuse things if we try to turn on the MMC
clock when the power is off.  Adjust is so that we turn the clock on
(using dw_mci_setup_bus) after power is all the way on and we turn the
clock off before the power goes off.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c