This improves the compatibility of this driver across board and memory
variants by avoiding use of the HISPD mode.
---
 rtemsbsd/sys/dev/sdhci/arasan_sdhci.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c 
b/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
index bac6b148..0e87d903 100644
--- a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
+++ b/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
@@ -279,6 +279,13 @@ arasan_sdhci_attach(device_t dev)
                goto fail;
        }
 
+       /*
+        * There are some combinations of board routing and eMMC memory that are
+        * not compatible with the HISPD mode. This disables HISPD mode for
+        * compatibility.
+        */
+       sc->slot.quirks |= SDHCI_QUIRK_DONT_SET_HISPD_BIT;
+
        /*
         * DMA is not really broken, it just isn't implemented yet.
         */
-- 
2.30.2

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to