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 <long.yu@amlogic.com>
This commit is contained in:
Long Yu
2018-04-24 13:51:22 +08:00
committed by Yixun Lan
parent de3cb02ece
commit 6fa50ed517

View File

@@ -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",