From: Jerry Huang <chang-ming.hu...@freescale.com> 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 <b22...@freescale.com> Signed-off-by: Xie Xiaobo <x....@freescale.com> Signed-off-by: Jerry Huang <chang-ming.hu...@freescale.com> --- drivers/mmc/host/sdhci-pltfm.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 5417d84..c4ec8bd 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -74,6 +74,9 @@ void sdhci_get_of_property(struct platform_device *pdev) if (of_get_property(np, "sdhci,dma-broken", NULL)) host->quirks |= SDHCI_QUIRK_BROKEN_DMA; + if (of_get_property(np, "sdhci,adjust-timeout", NULL)) + host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; + if (of_get_property(np, "sdhci,ahb2mag-irq-bypass", NULL)) host->quirks2 |= SDHCI_QUIRK2_SET_AHB2MAG_IRQ_BYPASS; -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html