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

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

Merge "mmc: card: fix timeout on erase/trim command due to sanitize"

parents b46817b1 ad160c8d
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1439,13 +1439,6 @@ retry:
			goto out;
	}

	if (mmc_can_sanitize(card)) {
		trace_mmc_blk_erase_start(EXT_CSD_SANITIZE_START, 0, 0);
		err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
				 EXT_CSD_SANITIZE_START, 1,
				 MMC_SANITIZE_REQ_TIMEOUT);
		trace_mmc_blk_erase_end(EXT_CSD_SANITIZE_START, 0, 0);
	}
out_retry:
	if (err && !mmc_blk_reset(md, card->host, type))
		goto retry;