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

Commit b14535cc authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti
Browse files

mmc: card: Update error stats to track cmdq request timeout error



This change updates the error stats list to capture number of
occurrences of cmdq request timeout error, which can be read out
from debugfs.

Change-Id: I2f018342e8800f79cd5d2aadd6a5071bf1be6959
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent 9fa6612f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3461,6 +3461,8 @@ static enum blk_eh_timer_return mmc_blk_cmdq_req_timed_out(struct request *req)
	else
		mrq->data->error = -ETIMEDOUT;

	host->err_stats[MMC_ERR_CMDQ_REQ_TIMEOUT]++;

	if (mrq->cmd && mrq->cmd->error) {
		if (!(mrq->req->cmd_flags & REQ_PREFLUSH)) {
			/*