Skip to contentSkip to conversation

mmc: fsl_esdhc_imx: fix the DTOCV to 0xE

PATCH New Ye Li 3 participants 3 messages Feb 19, 2021 – Mar 1, 2021

Subsystems (2)
lore
Share & tools
lore

Ye Li

author
#0 lore raw

PATCH 1/1 mmc: fsl_esdhc_imx: fix the DTOCV to 0xE

From: Haibo Chen <[email protected]>

On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact cmd6 behavior, after cmd6 get transfer complete interrupt, the data0 line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL. For other platforms, do not has this issue.

To fix this issue, fix the DTOCV to 0xE, the max setting, this also align with Linux configuration.

---
 drivers/mmc/fsl_esdhc_imx.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/mmc/fsl_esdhc_imx.c +6 -0
index e0e1326..7b31ed8 100644
@@ -43,6 +43,12 @@
 #include "mmc_private.h"
 #endif
 
+#ifndef ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
+#ifdef CONFIG_FSL_USDHC
+#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE	1
+#endif
+#endif
+
 DECLARE_GLOBAL_DATA_PTR;
 
 #define SDHCI_IRQ_EN_BITS		(IRQSTATEN_CC | IRQSTATEN_TC | \
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mmc: fsl_esdhc_imx: fix the DTOCV to 0xE

Quoted 7 lines · Ye Li

From: Haibo Chen <[email protected]>

On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact cmd6 behavior, after cmd6 get transfer complete interrupt, the data0 line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL. For other platforms, do not has this issue.

Quoted 5 lines

To fix this issue, fix the DTOCV to 0xE, the max setting, this also align with Linux configuration.

Best Regards,
Jaehoon Chung

Quoted 22 lines
---
 drivers/mmc/fsl_esdhc_imx.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/mmc/fsl_esdhc_imx.c +6 -0
index e0e1326..7b31ed8 100644
@@ -43,6 +43,12 @@
 #include "mmc_private.h"
 #endif
 
+#ifndef ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
+#ifdef CONFIG_FSL_USDHC
+#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE	1
+#endif
+#endif
+
 DECLARE_GLOBAL_DATA_PTR;
 
 #define SDHCI_IRQ_EN_BITS		(IRQSTATEN_CC | IRQSTATEN_TC | \
#2 lore raw

PATCH 1/1 mmc: fsl_esdhc_imx: fix the DTOCV to 0xE

In reply to Ye Li
Quoted 10 lines

From: Haibo Chen <[email protected]>
On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact cmd6 behavior, after cmd6 get transfer complete interrupt, the data0 line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL. For other platforms, do not has this issue.
To fix this issue, fix the DTOCV to 0xE, the max setting, this also align with Linux configuration.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================