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 <yifeng.zhao@rock-chips.com>
Change-Id: Ic03a4d88367e3fea00f648f4a21df1669f4f0832
This commit is contained in:
Yifeng Zhao
2023-10-12 16:33:07 +08:00
committed by Zhaoyifeng
parent ef29dab574
commit 45a89eb8fa

View File

@@ -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);