LOCAL / mmc: dw_mmc: exynos: skip the specific sample value
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 6 May 2015 08:05:44 +0000 (17:05 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:32 +0000 (14:56 +0900)
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 <jh80.chung@samsung.com>
drivers/mmc/host/dw_mmc-exynos.c

index a84aa3f..d48df8b 100644 (file)
@@ -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);