Skip to content
Snippets Groups Projects
Commit 1b6d2dbb authored by Troy Kisky's avatar Troy Kisky
Browse files

fsl_esdhc: increase busy timeout, erasing can be slow

parent a083a72f
No related branches found
No related tags found
No related merge requests found
......@@ -489,9 +489,12 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
/* Workaround for ESDHC errata ENGcm03648 */
if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
int timeout = 6000;
int timeout = 20000;
/* Poll on DATA0 line for cmd with busy signal for 600 ms */
/*
* Poll on DATA0 line for cmd with busy signal for 2 seconds.
* Erasing can be slow.
*/
while (timeout > 0 && !(esdhc_read32(&regs->prsstat) &
PRSSTAT_DAT0)) {
udelay(100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment