Loading drivers/mmc/card/queue.c +1 −0 Original line number Diff line number Diff line Loading @@ -343,6 +343,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, } else { sema_init(&mq->thread_sem, 1); mq->queue->queuedata = mq; card->host->cmdq_ctx.q = mq->queue; mq->thread = kthread_run(mmc_cmdq_thread, mq, "mmc-cmdqd/%d%s", host->index, Loading drivers/mmc/core/core.c +5 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ #include <linux/of.h> #include <linux/pm.h> #include <linux/jiffies.h> #include <linux/blkdev.h> #include <trace/events/mmc.h> Loading Loading @@ -1434,8 +1435,11 @@ int mmc_cmdq_halt(struct mmc_host *host, bool halt) host->ops->notify_halt(host, halt); if (!err && halt) mmc_host_set_halt(host); else if (!err && !halt) else if (!err && !halt) { mmc_host_clr_halt(host); if (host->cmdq_ctx.q) blk_run_queue(host->cmdq_ctx.q); } } else { err = -ENOSYS; } Loading include/linux/mmc/host.h +1 −0 Original line number Diff line number Diff line Loading @@ -255,6 +255,7 @@ struct mmc_cmdq_context_info { /* no free tag available */ unsigned long req_starved; wait_queue_head_t queue_empty_wq; struct request_queue *q; }; /** Loading Loading
drivers/mmc/card/queue.c +1 −0 Original line number Diff line number Diff line Loading @@ -343,6 +343,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, } else { sema_init(&mq->thread_sem, 1); mq->queue->queuedata = mq; card->host->cmdq_ctx.q = mq->queue; mq->thread = kthread_run(mmc_cmdq_thread, mq, "mmc-cmdqd/%d%s", host->index, Loading
drivers/mmc/core/core.c +5 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ #include <linux/of.h> #include <linux/pm.h> #include <linux/jiffies.h> #include <linux/blkdev.h> #include <trace/events/mmc.h> Loading Loading @@ -1434,8 +1435,11 @@ int mmc_cmdq_halt(struct mmc_host *host, bool halt) host->ops->notify_halt(host, halt); if (!err && halt) mmc_host_set_halt(host); else if (!err && !halt) else if (!err && !halt) { mmc_host_clr_halt(host); if (host->cmdq_ctx.q) blk_run_queue(host->cmdq_ctx.q); } } else { err = -ENOSYS; } Loading
include/linux/mmc/host.h +1 −0 Original line number Diff line number Diff line Loading @@ -255,6 +255,7 @@ struct mmc_cmdq_context_info { /* no free tag available */ unsigned long req_starved; wait_queue_head_t queue_empty_wq; struct request_queue *q; }; /** Loading