From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaehoon Chung Date: Mon, 22 Feb 2021 08:39:38 +0900 Subject: [PATCH] mmc: fsl_esdhc_imx: fix the DTOCV to 0xE In-Reply-To: <1613762732-107438-1-git-send-email-ye.li@nxp.com> References: <1613762732-107438-1-git-send-email-ye.li@nxp.com> Message-ID: <3270b62c-95c3-9586-1685-f33e6888735b@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/20/21 4:25 AM, Ye Li wrote: > From: Haibo Chen > > 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. > > Signed-off-by: Haibo Chen > Reviewed-by: Ye Li Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > drivers/mmc/fsl_esdhc_imx.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c > index e0e1326..7b31ed8 100644 > --- a/drivers/mmc/fsl_esdhc_imx.c > +++ b/drivers/mmc/fsl_esdhc_imx.c > @@ -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 | \ >