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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 drivers/mmc/host/sdhci-pltfm.c | 3 +++
 1 file changed, 3 insertions(+)

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") ||
-- 
2.1.0.27.g96db324

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux