mmc: core: Update HS400 timing mode before performing tuning

There is no need to prepare anything additional before tuning for HS400
other than updating the HS400 timing mode, so just do that.

Change-Id: Ib7a72a4bb9b901e32413acf440c925c4cd50a73d
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
[subhashj@codeaurora.org: fixed trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
Venkat Gopalakrishnan 2015-01-09 15:09:11 -08:00 committed by Subhash Jadavani
parent fe333f447f
commit 34e4cf13f7

View file

@ -1461,8 +1461,7 @@ static int mmc_hs200_tuning(struct mmc_card *card)
*/
if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400 &&
host->ios.bus_width == MMC_BUS_WIDTH_8)
if (host->ops->prepare_hs400_tuning)
host->ops->prepare_hs400_tuning(host, &host->ios);
mmc_set_timing(host, MMC_TIMING_MMC_HS400);
return mmc_execute_tuning(card);
}