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

Commit d8021a62 authored by Asutosh Das's avatar Asutosh Das
Browse files

mmc: block: Avoid retry in case of data error



Avoid retrying using single block for read commands that
fail with MMC_BLK_DATA_ERR. The single block read retry
is needed only in case of a CRC error for which
MMC_BLK_ECC_ERR will be set anyway by mmc_blk_err_check().

CRs-fixed: 2418826
Change-Id: Ide03b264b6e4315246ee140b477654efe97e3af7
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 297cd64d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3348,9 +3348,9 @@ static void mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *new_req)
			int err;

			err = mmc_blk_reset(md, card->host, type);
			if (!err)
			if (!err) {
				break;
			if (err == -ENODEV) {
			} else {
				mmc_blk_rw_cmd_abort(mq, card, old_req, mq_rq);
				mmc_blk_rw_try_restart(mq, new_req, mqrq_cur);
				return;