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

Commit f3bc95e7 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: host: Use max timeout supported by sdcc



Use max timeout supported by sdcc controller.

Change-Id: Idaf2de05622468eddb26215da1768511b46a2bd0
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent aebff8f6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -921,9 +921,9 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd,
			break;
	}

	if (count >= 0xF) {
		if (!(host->quirks2 & SDHCI_QUIRK2_DISABLE_HW_TIMEOUT) ||
		    !(host->quirks2 & SDHCI_QUIRK2_USE_RESERVED_MAX_TIMEOUT))
	if (count >= 0xF &&
		!(host->quirks2 & SDHCI_QUIRK2_USE_RESERVED_MAX_TIMEOUT)) {
		if (!(host->quirks2 & SDHCI_QUIRK2_DISABLE_HW_TIMEOUT))
			DBG("Too large timeout 0x%x requested for CMD%d!\n",
			    count, cmd->opcode);
		count = 0xE;