Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee085ab8 authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

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: default avatarSahitya Tummala <stummala@codeaurora.org>
parent e113b07e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4156,6 +4156,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;