From 6fa50ed5172e06e92ae31a146978f86f909f3245 Mon Sep 17 00:00:00 2001 From: Long Yu Date: Tue, 24 Apr 2018 13:51:22 +0800 Subject: [PATCH] emmc: DS shift picked the wrong window middle point PD#165086: emmc: DS shift picked the wrong window middle point Change-Id: If96b854b4e9669426351ba89d36e2d2a7dcf6be4 Signed-off-by: Long Yu --- drivers/amlogic/mmc/aml_sd_emmc_v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/mmc/aml_sd_emmc_v3.c b/drivers/amlogic/mmc/aml_sd_emmc_v3.c index 74ac465b0941..7f6e591838fd 100644 --- a/drivers/amlogic/mmc/aml_sd_emmc_v3.c +++ b/drivers/amlogic/mmc/aml_sd_emmc_v3.c @@ -891,7 +891,7 @@ static int emmc_ds_manual_sht(struct mmc_host *mmc) cur_size = -1; } - gintf3->ds_sht_m = (best_start + best_size) / 2; + gintf3->ds_sht_m = best_start + best_size / 2; writel(intf3, host->base + SD_EMMC_INTF3); pdata->intf3 = intf3; pr_info("ds_sht:%u, window:%d, intf3:0x%x",