From: Jerry Huang <[email protected]>

When access the card on some FSL platform board (e.g p2020, p1010, mpc8536),
the following error is reported with the timeout value calculated:

mmc0: Got data interrupt 0x00000020 even though no data operation was
in progress.
mmc0: Got data interrupt 0x00000020 even though no data operation was
in progress.

So we skip the calculation of timeout and use the max value to fix it.

Signed-off-by: Gao Guanhua <[email protected]>
Signed-off-by: Xie Xiaobo <[email protected]>
Signed-off-by: Jerry Huang <[email protected]>
CC: Chris Ball <[email protected]>
Acked-by: Anton Vorontsov <[email protected]>
---
changes for v2:
        - change the property to compatible for quirks
changes for v3:
        - add the Acked-by

 drivers/mmc/host/sdhci-pltfm.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 67b9ab0..04fa130 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -74,6 +74,13 @@ 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,p2020-esdhc")
+                               || of_device_is_compatible(np,
+                                       "fsl,p1010-esdhc")
+                               || of_device_is_compatible(np,
+                                       "fsl,mpc8536-esdhc"))
+                       host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
+
                clk = of_get_property(np, "clock-frequency", &size);
                if (clk && size == sizeof(*clk) && *clk)
                        pltfm_host->clock = be32_to_cpup(clk);
-- 
1.7.5.4


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

Reply via email to