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: Konstantin Dorfman <kdorfman@codeaurora.org>
This commit is contained in:
parent
6739d00347
commit
108d3eb6e6
2 changed files with 3 additions and 0 deletions
|
@ -674,6 +674,8 @@ irqreturn_t cmdq_irq(struct mmc_host *mmc, int err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status & CQIS_HAC) {
|
if (status & CQIS_HAC) {
|
||||||
|
if (cq_host->ops->post_cqe_halt)
|
||||||
|
cq_host->ops->post_cqe_halt(mmc);
|
||||||
/* halt is completed, wakeup waiting thread */
|
/* halt is completed, wakeup waiting thread */
|
||||||
complete(&cq_host->halt_comp);
|
complete(&cq_host->halt_comp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,6 +201,7 @@ struct cmdq_host_ops {
|
||||||
int (*reset)(struct mmc_host *mmc);
|
int (*reset)(struct mmc_host *mmc);
|
||||||
int (*crypto_cfg)(struct mmc_host *mmc, struct mmc_request *mrq,
|
int (*crypto_cfg)(struct mmc_host *mmc, struct mmc_request *mrq,
|
||||||
u32 slot);
|
u32 slot);
|
||||||
|
void (*post_cqe_halt)(struct mmc_host *mmc);
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void cmdq_writel(struct cmdq_host *host, u32 val, int reg)
|
static inline void cmdq_writel(struct cmdq_host *host, u32 val, int reg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue