diff options
author | Haibo Chen <haibo.chen@nxp.com> | 2016-06-22 15:02:11 +0800 |
---|---|---|
committer | Haibo Chen <haibo.chen@nxp.com> | 2016-06-29 13:50:41 +0800 |
commit | 6905ad8789a97c118de2a5211963a57b90b3566b (patch) | |
tree | 2f26388f1d7c83752df1d90a4a84412ecdac21d2 /drivers | |
parent | a7f1dc668495d8710399d61921d83d71d701f6e9 (diff) |
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)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index b915ecd3e15d..c537eba4085c 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -988,7 +988,7 @@ static unsigned int esdhc_get_max_timeout_count(struct sdhci_host *host) struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); struct pltfm_imx_data *imx_data = pltfm_host->priv; - return esdhc_is_usdhc(imx_data) ? 1 << 28 : 1 << 27; + return esdhc_is_usdhc(imx_data) ? 1 << 29 : 1 << 27; } static void esdhc_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) |