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

Commit 1ca0a9c0 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: core: Notify higher layer of ice errors



This patch completes with the received error without
any error handling. Since this request is not even
prepared, there's no need for error handling to be done.

Hence, notify higher layers with appropriate error in the
event of errors during ice configuration.

Change-Id: I3807e10c4eeac8c8da02142ccf0b262c9ed4a647
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 019de689
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2327,7 +2327,11 @@ enum mmc_issued mmc_blk_mq_issue_rq(struct mmc_queue *mq, struct request *req)
		}
		if (!ret)
			return MMC_REQ_STARTED;
		return ret == -EBUSY ? MMC_REQ_BUSY : MMC_REQ_FAILED_TO_START;

		if (ret == -EBUSY)
			return MMC_REQ_BUSY;

		return MMC_REQ_FAILED_TO_START;
	default:
		WARN_ON_ONCE(1);
		return MMC_REQ_FAILED_TO_START;