summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorHaijun Zhang <Haijun.Zhang@freescale.com>2013-10-23 05:01:08 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2013-12-18 19:23:58 (GMT)
commit77e1e15aeac84a6e81acfd44afa771a8cc8cdafd (patch)
treedea649474ef9e47e357a09280885a14480b6b81d /drivers/mmc
parent83c51ddaf26377cb6f63ba1fcf23e91d9b382e68 (diff)
downloadlinux-fsl-qoriq-77e1e15aeac84a6e81acfd44afa771a8cc8cdafd.tar.xz
esdhc: Fix clock stable bit to 1
Clock of esdhc host don't support clock disable and enbale. So clock stable bit didn't behave as it mean. Just fix it to '1' to avoid misreading. Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com> Change-Id: Ib718005ca3419130a43cbf61c6351878b4eb4dbf Reviewed-on: http://git.am.freescale.net:8181/5929 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xiaobo Xie <X.Xie@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-of-esdhc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
index c5b3e60..419854f 100644
--- a/drivers/mmc/host/sdhci-of-esdhc.c
+++ b/drivers/mmc/host/sdhci-of-esdhc.c
@@ -50,6 +50,14 @@ static u32 esdhc_readl(struct sdhci_host *host, int reg)
ret |= SDHCI_CAN_DO_ADMA2;
}
+ /*
+ * Clock of eSDHC host don't support to be disabled and enabled.
+ * So clock stable bit doesn't behave as it mean, So fix it to
+ * '1' to avoid misreading.
+ */
+ if (reg == SDHCI_PRESENT_STATE)
+ ret |= ESDHC_CLK_STABLE;
+
return ret;
}