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

Commit 28b10845 authored by Asutosh Das's avatar Asutosh Das
Browse files

mmc: cmdq: 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.

CRs-fixed: 2259462
Change-Id: I49f352bd1b79054849da1de3532a9b318e970af0
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 53de1644
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4099,6 +4099,13 @@ static int mmc_blk_cmdq_issue_rq(struct mmc_queue *mq, struct request *req)
			if (ret == -EBUSY || ret == -EAGAIN) {
				mmc_blk_cmdq_requeue_rw_rq(mq, req);
				mmc_put_card(host->card);
			} else if (ret == -ENOMEM) {
				/*
				 * Elaborate error handling is not needed for
				 * system errors. Let the higher layer decide
				 * on the next steps.
				 */
				goto out;
			}
		}
	}