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

Commit 6087341b authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

mmc: core: Fix error handling of MMC_BLK_DATA_ERR



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().

Change-Id: Iec9487fd73ecf2bdd5e62732cd42cdb3a639d0dc
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 3311f658
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -2675,10 +2675,7 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc)
			err = mmc_blk_reset(md, card->host, type);
			err = mmc_blk_reset(md, card->host, type);
			if (!err)
			if (!err)
				break;
				break;
			if (err == -ENODEV ||
				mmc_packed_cmd(mq_rq->cmd_type))
			goto cmd_abort;
			goto cmd_abort;
			/* Fall through */
		}
		}
		case MMC_BLK_ECC_ERR:
		case MMC_BLK_ECC_ERR:
			if (brq->data.blocks > 1) {
			if (brq->data.blocks > 1) {