]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sd: UHS-I bus speed should be set last in UHS initialization
authorSubhash Jadavani <subhashj@codeaurora.org>
Tue, 9 Aug 2011 06:49:31 +0000 (12:19 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 23 Aug 2011 16:15:53 +0000 (12:15 -0400)
commit53f45e03faa9d3229a30676508508fb172bb9e5a
tree439ccf5cb24a669c94f7f0222d99a0668f0169c5
parent1f70fa3c32b598453f00c411b77c0548adf8d945
mmc: sd: UHS-I bus speed should be set last in UHS initialization

mmc_sd_init_uhs_card function sets the driver type, current limit
and bus speed mode on card as well as on host controller side.

Currently bus speed mode is set by sending CMD6 to card and
immediately setting the timing mode in host controller. But
then before initiating tuning sequence, it also tries to set
current limit by sending CMD6 to card which results in data
timeout errors in controller if bus speed mode is SDR50/SDR104 mode.

So basically bus speed mode should be set only after current limit
is set in the card and immediately after setting the bus speed mode,
tuning sequence should be initiated.

Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd.c