8000 MLK-12934-1 mmc: sdhci-esdhc-imx: correct the max timeout count · codebug8/linux-imx@6905ad8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6905ad8

Browse files
author
Haibo Chen
committed
MLK-12934-1 mmc: sdhci-esdhc-imx: correct the max timeout count
Our Reference Manual has a mistake, for the register SYS_CTRL,the DTOCV(bit 19~16) means the data timeout counter value. When DTOCV is set to 0xF, it means SDCLK << 29, not SDCLK << 28. This patch correct this in our usdhc driver. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit df9598d6dd617ed87b2e41e29bfc794b69831e86)
1 parent a7f1dc6 commit 6905ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-esdhc-imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ static unsigned int esdhc_get_max_timeout_count(struct sdhci_host *host)
988988
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
989989
struct pltfm_imx_data *imx_data = pltfm_host->priv;
990990

991-
return esdhc_is_usdhc(imx_data) ? 1 << 28 : 1 << 27;
991+
return esdhc_is_usdhc(imx_data) ? 1 << 29 : 1 << 27;
992992
}
993993

994994
static void esdhc_set_timeout(struct sdhci_host *host, struct mmc_command *cmd)

0 commit comments

Comments
 (0)
0