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

Commit dd75b060 authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan
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: I2eeda8589ca4c83bbb4a1b372e9363224bbfb680
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 5fade566
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1827,6 +1827,8 @@ end_req:
	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);
	sdhci_runtime_pm_put(host);
	sdhci_runtime_pm_put(host);
}
}