]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: changes frequency to hs_max_dtr when selecting hs400es
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 30 Sep 2016 06:18:59 +0000 (14:18 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Oct 2016 12:01:15 +0000 (14:01 +0200)
commit4f25580fb84d934d7ecffa3c0aa8f10f7e23af92
tree624c64cb0d179ff5ef5732ce4f7d58eaf4302b59
parent1720d3545b772c49b2975eeb3b8f4d3f56dc2085
mmc: core: changes frequency to hs_max_dtr when selecting hs400es

Per JESD84-B51 P49, Host need to change frequency to <=52MHz
after setting HS_TIMING to 0x1, and host may changes frequency
to <= 200MHz after setting HS_TIMING to 0x3. That means the card
expects the clock rate to increase from the current used f_init
(which is less than 400KHz, but still being less than 52MHz) to
52MHz, otherwise we find some eMMC devices significantly report
failure when sending status.

Reported-by: Xiao Yao <xiaoyao@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c