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

Commit ae0129cb authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

mmc: cmdq-host: add post halt helper after halt ack interrupt



After the CQE halt on some controllers need additional actions, before
wakeup of waiting thread.

Change-Id: I742baa48eb3f6eccf782d77a03aafe16ab7188f1
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 130fa91f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -674,6 +674,8 @@ irqreturn_t cmdq_irq(struct mmc_host *mmc, int err)
	}

	if (status & CQIS_HAC) {
		if (cq_host->ops->post_cqe_halt)
			cq_host->ops->post_cqe_halt(mmc);
		/* halt is completed, wakeup waiting thread */
		complete(&cq_host->halt_comp);
	}
+1 −0
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ struct cmdq_host_ops {
	int (*reset)(struct mmc_host *mmc);
	int (*crypto_cfg)(struct mmc_host *mmc, struct mmc_request *mrq,
				u32 slot);
	void (*post_cqe_halt)(struct mmc_host *mmc);
};

static inline void cmdq_writel(struct cmdq_host *host, u32 val, int reg)