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

Commit 3bc07761 authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

mmc: core: Fix the timing related checks in partial_init



If the card (which is a eMMC 5.1 complaint card) is scaled down
to HS200, then the current logic in partial_init doesn't invoke
tuning due to these invalid checks.

Change-Id: I1e5cbb6a2dfff129acdb27e27ea090d58197f41c
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 5d135db7
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2431,10 +2431,10 @@ static int mmc_partial_init(struct mmc_host *host)

	mmc_host_clk_hold(host);

	if (mmc_card_hs200(card) || mmc_card_hs400(card)) {
	if (mmc_card_hs400(card)) {
		if (card->ext_csd.strobe_support && host->ops->enhanced_strobe)
			err = host->ops->enhanced_strobe(host);
		else
	} else if (mmc_card_hs200(card) && host->ops->execute_tuning) {
		err = host->ops->execute_tuning(host,
			MMC_SEND_TUNING_BLOCK_HS200);
		if (err)