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

Commit eb9fd932 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: Enable HS mode first in the device and then in the host"

parents c52c8180 b1d2009d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1192,10 +1192,6 @@ static int mmc_select_hs400(struct mmc_card *card)
	if (host->caps & MMC_CAP_WAIT_WHILE_BUSY)
		send_status = false;

	/* Reduce frequency to HS frequency */
	max_dtr = card->ext_csd.hs_max_dtr;
	mmc_set_clock(host, max_dtr);

	/* Switch card to HS mode */
	val = EXT_CSD_TIMING_HS;
	err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
@@ -1211,6 +1207,10 @@ static int mmc_select_hs400(struct mmc_card *card)
	/* Set host controller to HS timing */
	mmc_set_timing(card->host, MMC_TIMING_MMC_HS);

	/* Reduce frequency to HS frequency */
	max_dtr = card->ext_csd.hs_max_dtr;
	mmc_set_clock(host, max_dtr);

	if (!send_status) {
		err = mmc_switch_status(card);
		if (err)