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

Commit b7dac7b3 authored by Vijay Viswanath's avatar Vijay Viswanath
Browse files

mmc: mmc: Use mmc_select_hs400 instead of mmc_select_hs400es



mmc_select_hs400es is an upstream function where the procedure to scale
to hs400 is different from the downstream procedure (mmc_select_hs400).
During card initialization, use mmc_select_hs400 to initialize to hs400
as the upstream API is causing problems.

Change-Id: I9ceda4aa702ce57fb483b9114a78b64f63e17352
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
parent f526258c
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -1604,12 +1604,19 @@ static int mmc_select_timing(struct mmc_card *card)
	/* For Enhance Strobe HS400 flow */
	if (card->ext_csd.strobe_support &&
	    card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400 &&
	    card->host->caps & MMC_CAP_8_BIT_DATA)
	    card->host->caps & MMC_CAP_8_BIT_DATA) {
		err = mmc_select_hs400(card);
		if (err) {
			pr_err("%s: %s: mmc_select_hs400 failed : %d\n",
					mmc_hostname(card->host), __func__,
					err);
			err = mmc_select_hs400es(card);
	else if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200)
		}
	} else if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200) {
		err = mmc_select_hs200(card);
	else if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS)
	} else if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS) {
		err = mmc_select_hs(card);
	}

	if (err && err != -EBADMSG)
		return err;