mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user