summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/vub300.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-08-28 17:29:09 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 16:03:49 +0300
commit1e03331d6b4340461efefab8b1dee874009ad950 (patch)
tree048caedd8611802a42eb7ab649c7586b08403a89 /drivers/mmc/host/vub300.c
parent844c8a75f476696e5e472d904d155d5f583f915d (diff)
downloadlinux-1e03331d6b4340461efefab8b1dee874009ad950.tar.xz
mmc: meson-gx: work around clk-stop issue
It seems that the mmc clock is also used and required, somehow, by the controller itself. It is shown during init, when writing to CFG while the divider is set to 0 will crash the SoC. During a voltage switch, the controller may crash and the card may then fail to exit busy state if the clock is stopped. To avoid this, it is best to keep the clock running for the controller, except during rate change. However, we still need to be able to gate the clock out of the SoC. Let's use the pinmux for this, and fallback to gpio mode (pulled-down) when we need to gate the clock Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/vub300.c')
0 files changed, 0 insertions, 0 deletions