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

Commit 53b18c6c authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: core: Add retuning to cmdq path



Retune only when card is not in enhanced strobe mode
or clock speed is more than HS/DDR speed.

Change-Id: I8c506a69053022fda65d78838f09e905519f07cc
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent cdc5d942
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -153,7 +153,9 @@ int mmc_retune(struct mmc_host *host)
	else
		return 0;

	if (!host->need_retune || host->doing_retune || !host->card)
	if (!host->need_retune || host->doing_retune || !host->card
			|| mmc_card_hs400es(host->card)
			|| (host->ios.clock <= MMC_HIGH_DDR_MAX_DTR))
		return 0;

	host->need_retune = 0;