Skip to contentSkip to conversation

drivers/mmc/fsl_esdhc: Set the eSHDC DMACTL[SNOOP] bit after the completion of Host Controller reset.

PATCH New P.V.Suresh 2 participants 2 messages Dec 6, 2010 – Dec 13, 2010 MMC, SD and SDIO

lore
Share & tools
lore

P.V.Suresh

author
#0 lore raw

PATCH 1/1 drivers/mmc/fsl_esdhc: Set the eSHDC DMACTL[SNOOP] bit after the completion of Host Controller reset.

eSDHC host controller reset results in clearing of snoop bit also. This patch sets the SNOOP bit after the completion of host controller reset. Without this patch mmc reads are not consistent.

---

This patch applies to master branch of git://git.denx.de/u-boot.git

 drivers/mmc/fsl_esdhc.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/mmc/fsl_esdhc.c +4 -4
index a368fe6..57cd4ee 100644
@@ -384,10 +384,6 @@ static int esdhc_init(struct mmc *mmc)
 	int ret = 0;
 	u8 card_absent;
 
-	/* Enable cache snooping */
-	if (cfg && !cfg->no_snoop)
-		esdhc_write32(&regs->scr, 0x00000040);
-
 	/* Reset the entire host controller */
 	esdhc_write32(&regs->sysctl, SYSCTL_RSTA);
 
@@ -395,6 +391,10 @@ static int esdhc_init(struct mmc *mmc)
 	while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTA) && --timeout)
 		udelay(1000);
 
+	/* Enable cache snooping */
+	if (cfg && !cfg->no_snoop)
+		esdhc_write32(&regs->scr, 0x00000040);
+
 	esdhc_write32(&regs->sysctl, SYSCTL_HCKEN | SYSCTL_IPGEN);
 
 	/* Set the initial clock speed */
Signature · 1 line
1.5.6.5
Applied
#1 lore raw

PATCH 1/1 drivers/mmc/fsl_esdhc: Set the eSHDC DMACTL[SNOOP] bit after the completion of Host Controller reset.

Quoted 11 lines · P.V.Suresh

eSDHC host controller reset results in clearing of snoop bit also. This patch sets the SNOOP bit after the completion of host controller reset. Without this patch mmc reads are not consistent.

---

This patch applies to master branch of git://git.denx.de/u-boot.git

drivers/mmc/fsl_esdhc.c | 8 ++++----

1 files changed, 4 insertions(+), 4 deletions(-)

applied to 85xx

[shortened the commit one liner]

- k