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

Commit 636c6f6c authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma Committed by Stephen Boyd
Browse files

mmc: msm_sdcc: Enable AUTO_PROG_DONE for CMD25



With commit (d5d59dc) setting AUTO_PROG_DONE bit for Multi
block write command (CMD25) is broken. Fix this by setting
wait_for_auto_prog_done flag for CMD25 preceded with CMD23.

Change-Id: Ic81550b199162b657ad4ef5de47ec0c2d4de25c8
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent f077c02e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2093,7 +2093,14 @@ msmsdcc_request(struct mmc_host *mmc, struct mmc_request *mrq)

	if (mrq->data && (mrq->data->flags & MMC_DATA_WRITE)) {
		if (is_auto_prog_done(host)) {
			if (!mrq->stop)
			/*
			 * Auto-prog done will be enabled for following cases:
			 * mrq->sbc	|	mrq->stop
			 * _____________|________________
			 *	True	|	Don't care
			 *	False	|	False (CMD24, ACMD25 use case)
			 */
			if (mrq->sbc || !mrq->stop)
				host->curr.wait_for_auto_prog_done = true;
		} else {
			if ((mrq->cmd->opcode == SD_IO_RW_EXTENDED) ||