summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorHaijun Zhang <Haijun.Zhang@freescale.com>2014-05-12 11:09:14 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-05-12 14:59:53 (GMT)
commitf663fb7bf50ecbc5378a999f8cb31c11f98fd91b (patch)
tree4872d7b70a9f1b85fd48f26b5c93fc017fe98ede /drivers/mmc
parent2f43668da7b585cd8b781b2bffaa62b59ca11bb8 (diff)
downloadlinux-fsl-qoriq-f663fb7bf50ecbc5378a999f8cb31c11f98fd91b.tar.xz
mmc/eSDHC: host need long time to generate command complete interrupt
According to Spec 2.0, command complete interrupt will be generate within 150 SD-CLK. But this was not long enough for P5040 board. So add quirk SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ to enlarge this detect time to avoid hardware timeout error. Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com> Change-Id: I26863bf687275191ead0e6396c381d9c15fb8e07 Reviewed-on: http://git.am.freescale.net:8181/12215 Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index a31b730..694c7a2 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -101,7 +101,8 @@ void sdhci_get_of_property(struct platform_device *pdev)
host->quirks2 |= SDHCI_QUIRK2_BROKEN_TRIM;
}
- if (of_device_is_compatible(np, "fsl,p5020-esdhc"))
+ if (of_device_is_compatible(np, "fsl,p5020-esdhc") ||
+ of_device_is_compatible(np, "fsl,p5040-esdhc"))
host->quirks2 |= SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ;
if (of_device_is_compatible(np, "fsl,p5040-esdhc") ||