From 45a89eb8faab7fe0f46b49a6613e10e7fc58acd7 Mon Sep 17 00:00:00 2001 From: Yifeng Zhao Date: Thu, 12 Oct 2023 16:33:07 +0800 Subject: [PATCH] mmc: dw_mmc: Fix DM 4GB TF card write data errors in RV1106 Before resetting the controller, it is necessary to increase the delay by 1 us or wait for a slight decrease in FIFO, so that no errors will occur during the DM 4GB TF card testing process. Signed-off-by: Yifeng Zhao Change-Id: Ic03a4d88367e3fea00f648f4a21df1669f4f0832 --- drivers/mmc/host/dw_mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index e763bb833330..b224bcd7fced 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2230,6 +2230,7 @@ static void dw_mci_tasklet_func(unsigned long priv) ((fifo_count >> 17) & 0x7FF) <= RV1106_RAMDON_DATA_SIZE / 4, 0, 5000 * USEC_PER_MSEC)) data->error = -ETIMEDOUT; + udelay(1); dw_mci_reset(host); } send_stop_abort(host, data);