From ecce69193d37f28dd8daeb1ee5677d674e9d4057 Mon Sep 17 00:00:00 2001 From: Sahitya Tummala Date: Tue, 5 Apr 2016 15:29:35 +0530 Subject: [PATCH] mmc: sdhci-msm: use PIO for tuning commands There are issues with ADMA when used with ICE enabled for tuning commands. As a workaround, use PIO mode for these commands by enabling quirk SDHCI_QUIRK2_USE_PIO_FOR_EMMC_TUNING . Change-Id: I8dbec823938525af90fb990db1bb4b325ee23cba Signed-off-by: Sahitya Tummala --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index c6fcf871b636..68427bf47ca6 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -4158,6 +4158,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) host->quirks2 |= SDHCI_QUIRK2_BROKEN_PRESET_VALUE; host->quirks2 |= SDHCI_QUIRK2_USE_RESERVED_MAX_TIMEOUT; host->quirks2 |= SDHCI_QUIRK2_NON_STANDARD_TUNING; + host->quirks2 |= SDHCI_QUIRK2_USE_PIO_FOR_EMMC_TUNING; if (host->quirks2 & SDHCI_QUIRK2_ALWAYS_USE_BASE_CLOCK) host->quirks2 |= SDHCI_QUIRK2_DIVIDE_TOUT_BY_4;