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

Commit 62be20f4 authored by Sridhar Arra's avatar Sridhar Arra Committed by Gerrit - the friendly Code Review server
Browse files

mmc: host: Update HS400 timing mode before performing tuning



Updating HS400 timing mode, before performing tuning.
Timing should be adjusted to the HS400 target operation
frequency for tuning process. Similar handling is also
done in mmc_hs200_tuning(). This is handled properly in
sdhci-msm.c from msm-5.4 onwards.

Change-Id: I39ec61033843b90bb178756e2910419fafafa78a
Signed-off-by: default avatarSridhar Arra <sarra@codeaurora.org>
parent 9626798f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -171,6 +171,16 @@ int mmc_retune(struct mmc_host *host)
		return_to_hs400 = true;
	}

	/*
	 * Timing should be adjusted to the HS400 target
	 * operation frequency for tuning process.
	 * Similar handling is also done in mmc_hs200_tuning()
	 * This is handled properly in sdhci-msm.c from msm-5.4 onwards.
	 */
	if (host->card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400 &&
		host->ios.bus_width == MMC_BUS_WIDTH_8)
		mmc_set_timing(host, MMC_TIMING_MMC_HS400);

	err = mmc_execute_tuning(host->card);
	if (err)
		goto out;