From: Ruixuan Li Date: Wed, 31 Oct 2018 06:41:58 +0000 (+0800) Subject: emmc: Modify delay of command line to 1/4 command window [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~1171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d19ae4ae8ca343be5109ba6805d311552712ecc;p=platform%2Fkernel%2Flinux-amlogic.git emmc: Modify delay of command line to 1/4 command window [1/1] PD#SWPL-1184 Problem: emmc data crc error Solution: Modify delay of command line Verify: A113d_s400 Change-Id: I7211da9da75569aebaf0c2790e3134e88a6f3077 Signed-off-by: Ruixuan Li --- diff --git a/drivers/amlogic/mmc/aml_sd_emmc_v3.c b/drivers/amlogic/mmc/aml_sd_emmc_v3.c index a651193..fac60fb 100644 --- a/drivers/amlogic/mmc/aml_sd_emmc_v3.c +++ b/drivers/amlogic/mmc/aml_sd_emmc_v3.c @@ -918,7 +918,7 @@ static unsigned int get_emmc_cmd_win(struct mmc_host *mmc) cur_size = -1; } delay2 &= ~(0x3f << 24); - delay2 |= ((best_start + best_size / 2) << 24); + delay2 |= ((best_start + best_size / 4) << 24); writel(delay2, host->base + SD_EMMC_DELAY2_V3); emmc_eyetest_log(mmc, 9); return max;