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

Commit d264da51 authored by Sahitya Tummala's avatar Sahitya Tummala Committed by Ram Prakash Gupta
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>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent ff71c455
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2603,10 +2603,10 @@ static int mmc_partial_init(struct mmc_host *host)
	mmc_set_clock(host, host->cached_ios.clock);
	mmc_set_bus_mode(host, host->cached_ios.bus_mode);

	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)