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

Commit 998590af authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: cmdq_hci: Avoid releasing clock twice during DCMD error"

parents 1d9c745b 5b1c80ba
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -943,6 +943,10 @@ irqreturn_t cmdq_irq(struct mmc_host *mmc, int err)
		 * before setting doorbell, hence one is not needed here.
		 */
		for_each_set_bit(tag, &comp_status, cq_host->num_slots) {
			mrq = get_req_by_tag(cq_host, tag);
			if (!((mrq->cmd && mrq->cmd->error) ||
					mrq->cmdq_req->resp_err ||
					(mrq->data && mrq->data->error))) {
				/* complete the corresponding mrq */
				pr_debug("%s: completing tag -> %lu\n",
					 mmc_hostname(mmc), tag);
@@ -951,6 +955,7 @@ irqreturn_t cmdq_irq(struct mmc_host *mmc, int err)
				cmdq_finish_data(mmc, tag);
			}
		}
	}

	if (status & CQIS_HAC) {
		if (cq_host->ops->post_cqe_halt)