From 3a76ca5271900b1b77aa8a9ef1ae8ce35d18d613 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Wed, 6 May 2015 17:05:44 +0900 Subject: [PATCH] LOCAL / mmc: dw_mmc: exynos: skip the specific sample value When card is tuning, skip the specific value(0x4). This patch is workaround. Until find the optimal solution and root problem, use this workaround. Change-Id: I60881de6294eab9ba4a2cbf363c3a082987350a3 Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc-exynos.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index a84aa3f..d48df8b 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -456,6 +456,10 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode) mci_writel(host, TMOUT, ~0); smpl = dw_mci_exynos_move_next_clksmpl(host); + /* Workaround */ + if (smpl == 4) + continue; + if (!mmc_send_tuning(mmc, opcode, NULL)) candiates |= (1 << smpl); -- 2.7.4