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

Commit 66ccbc3e authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: sdhci: clear host mrq in case of error



In case of a crypto error during request submission clear the
host mrq structure in preparation for the next request and
dump the current register state for further debugging.

Change-Id: I0fd9dd68f418d6437b0d4024070c8f3a37ccc0ef
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 53ffc855
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2053,6 +2053,8 @@ static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
	mrq->cmd->error = -EIO;
	mrq->cmd->error = -EIO;
	if (mrq->data)
	if (mrq->data)
		mrq->data->error = -EIO;
		mrq->data->error = -EIO;
	host->mrq = NULL;
	sdhci_dumpregs(host);
	mmc_request_done(host->mmc, mrq);
	mmc_request_done(host->mmc, mrq);
}
}