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

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

Revert "mmc: sdhci: Use max timeout and skip timeout calculation"



This reverts commit fef20d9b.
This is change is not longer needed as timeout is now calculated
at runtime.

Change-Id: I2aae45363676e998f3a64b47563e397d7a67f026
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 1526c9c6
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -892,12 +892,6 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd,
	if (!data && !cmd->busy_timeout)
		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;
	}

	/* timeout in us */
	target_timeout = sdhci_target_timeout(host, cmd, data);