• S
    mmc: sd: UHS-I bus speed should be set last in UHS initialization · 93c712f9
    Subhash Jadavani 提交于
    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: NSubhash Jadavani <subhashj@codeaurora.org>
    Reviewed-by: NArindam Nath <arindam.nath@amd.com>
    Signed-off-by: NChris Ball <cjb@laptop.org>
    93c712f9
sd.c 28.0 KB