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

Commit 7b627802 authored by Asutosh Das's avatar Asutosh Das
Browse files

mmc: sdhci: do not use maximum timeout for all cards



Remove maximum timeout for all cards, since this causes
a long resume time for SD cards. Now only Hynix cards would
have this maximum timeout and this would be decided at the core
layer.

Change-Id: I758f9e5ecf407aba371928a86c313cf69e3cda63
CRs-fixed: 587284
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 8c4feb67
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -812,12 +812,6 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd)
	if (host->quirks & SDHCI_QUIRK_BROKEN_TIMEOUT_VAL)
		return 0xE;

	/* During initialization, don't use max timeout as the clock is slow */
	if ((host->quirks2 & SDHCI_QUIRK2_USE_RESERVED_MAX_TIMEOUT) &&
		(host->clock > 400000)) {
		return 0xF;
	}

	/* Unspecified timeout, assume max */
	if (!data && !cmd->cmd_timeout_ms)
		return 0xE;