From: Yangbo Lu Date: Tue, 1 Sep 2020 08:58:02 +0000 (+0800) Subject: mmc: fsl_esdhc: clean TBCTL[TB_EN] manually during init X-Git-Tag: v2025.01-rc5-pxa1908~2177^2~17 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=1b5f0ba7a5e880869069b9b6ea4c0244118a05af;p=u-boot.git mmc: fsl_esdhc: clean TBCTL[TB_EN] manually during init Clean TBCTL[TB_EN] manually during init since it is not able to be reset by reset all operation. Signed-off-by: Yangbo Lu --- diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 4e04c101dc..e7db55d881 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -637,6 +637,9 @@ static int esdhc_init_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) return -ETIMEDOUT; } + /* Clean TBCTL[TB_EN] which is not able to be reset by reset all */ + esdhc_clrbits32(®s->tbctl, TBCTL_TB_EN); + esdhc_enable_cache_snooping(regs); esdhc_setbits32(®s->sysctl, SYSCTL_HCKEN | SYSCTL_IPGEN);