MA-10633 [Android] enlarge the timeout for waiting DATA0
authorzhang sanshan <sanshan.zhang@nxp.com>
Thu, 16 Nov 2017 07:38:11 +0000 (15:38 +0800)
committerzhang sanshan <sanshan.zhang@nxp.com>
Thu, 16 Nov 2017 08:01:55 +0000 (16:01 +0800)
600ms is not enough to erase erase_grp_size for some sdcard.
enlarge to to 1200ms.

Change-Id: Ic980794fa3064f92b479b87380e694f853f83c6a
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
drivers/mmc/fsl_esdhc.c

index baa67c1..13deee3 100644 (file)
@@ -518,9 +518,9 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
 
        /* Workaround for ESDHC errata ENGcm03648 */
        if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
-               int timeout = 6000;
+               int timeout = 12000;
 
-               /* Poll on DATA0 line for cmd with busy signal for 600 ms */
+               /* Poll on DATA0 line for cmd with busy signal for 1200 ms */
                while (timeout > 0 && !(esdhc_read32(&regs->prsstat) &
                                        PRSSTAT_DAT0)) {
                        udelay(100);