Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using MMC on HoneyComb LX2 (patch)



dyoung%pobox.com@localhost (David Young) writes:

>installed?  I guess that on such a board the ACPI node for MMC may be
>absent.  If it is present, then initialization will fail.  Either way,
>the MMC will not attach.

For a rk3588s based system, the eMMC wouldn't attach until I added
a short delay (which probably doesn't belong here):

@@ -2351,8 +2364,10 @@ sdhc_wait_intr(struct sdhc_host *hp, int
 
        if (nointr ||
            (ISSET(status, SDHC_ERROR_INTERRUPT) && error)) {
-               if (!ISSET(hp->sc->sc_flags, SDHC_FLAG_ENHANCED))
+               if (!ISSET(hp->sc->sc_flags, SDHC_FLAG_ENHANCED)) {
+                       sdmmc_delay(100);
                        (void)sdhc_soft_reset(hp, SDHC_RESET_CMD|SDHC_RESET_DAT);
+               }
                hp->intr_error_status = 0;
                status = 0;
        }



Home | Main Index | Thread Index | Old Index