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

Commit 7196abc1 authored by Ritesh Harjani's avatar Ritesh Harjani
Browse files

mmc: queue: Check for CQE disable state



Add a check in mmc_cmdq_ready_wait to not pull any
requests in case if CQE is disabled and card is not suspended.
This means that CQE must be in error state and so mmc_cmdq_thread
should stop issuing requests.

Change-Id: I0c5e6556d3d881f1a675db4fff4f995de024ddf8
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
parent 8b0af332
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -99,6 +99,8 @@ static inline void mmc_cmdq_ready_wait(struct mmc_host *host,
		  && test_bit(CMDQ_STATE_DCMD_ACTIVE, &ctx->curr_state))
		&& !(!host->card->part_curr && !mmc_card_suspended(host->card)
		     && mmc_host_halt(host))
		&& !(!host->card->part_curr && mmc_host_cq_disable(host) &&
			!mmc_card_suspended(host->card))
		&& !test_bit(CMDQ_STATE_ERR, &ctx->curr_state)
		&& !mmc_check_blk_queue_start_tag(q, mq->cmdq_req_peeked));
}