diff mbox series

[v2,6/6] mmc: sdhci-pltfm: add quirk for P2020 to ignore data inhibit

Message ID 20190228073618.16061-6-yinbo.zhu@nxp.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/6] mmc: sdhci-of-esdhc: add erratum eSDHC5 support | expand

Commit Message

Yinbo Zhu Feb. 28, 2019, 7:35 a.m. UTC
From: Yangbo Lu <yangbo.lu@nxp.com>

This patch is to add quirk for P2020 to ignore data inhibit.

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

Patch

diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index b231c9a..c26b3df 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -83,6 +83,9 @@  static void sdhci_get_compatibility(struct platform_device *pdev)
 	    of_device_is_compatible(np, "fsl,t4240-esdhc") ||
 	    of_device_is_compatible(np, "fsl,mpc8536-esdhc"))
 		host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
+
+	if (of_device_is_compatible(np, "fsl,p2020-esdhc"))
+		host->quirks2 |= SDHCI_QUIRK2_IGNORE_DATA_INHIBIT;
 }
 #else
 void sdhci_get_compatibility(struct platform_device *pdev) {}