diff mbox

mmc: sdhci-pltfm: add broken ADMA quirk for T4240 board

Message ID 1436499671-16153-1-git-send-email-yangbo.lu@freescale.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

yangbo lu July 10, 2015, 3:41 a.m. UTC
eMMC build-in on T4240 board can't work when using ADMA to transfer
data, but SDHC card could work well. No erratum provided, use SDMA
instead to get it to work first.

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
---
 drivers/mmc/host/sdhci-pltfm.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index a207f5a..0b4d059 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -95,6 +95,9 @@  void sdhci_get_of_property(struct platform_device *pdev)
 	if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc"))
 		host->quirks |= SDHCI_QUIRK_BROKEN_DMA;
 
+	if (of_device_is_compatible(np, "fsl,t4240-esdhc"))
+		host->quirks |= SDHCI_QUIRK_BROKEN_ADMA;
+
 	if (of_device_is_compatible(np, "fsl,p2020-esdhc") ||
 	    of_device_is_compatible(np, "fsl,p1010-esdhc") ||
 	    of_device_is_compatible(np, "fsl,t4240-esdhc") ||