diff options
| author | Asutosh Das <asutoshd@codeaurora.org> | 2015-04-23 16:01:57 +0530 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:26:34 -0700 |
| commit | 5bec5e8420699f14d23f0e9589ff10f916dc213b (patch) | |
| tree | 307b6409b7aba4b83f00a4b933629b7bfe6232f1 /drivers/mmc/card/queue.h | |
| parent | d10ca4a6adbf5ad663f565a7f7fe0356647beab0 (diff) | |
mmc: core: fix shutdown in cmdq mode
During the shutdown process,
- Stop the queue
- Flush all the pending requests
- Halt the Controller
- Put the card in legacy mode
Change-Id: I5fe4e998bc04bfd8f50de63f3beae3cb25f1c8ba
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'drivers/mmc/card/queue.h')
| -rw-r--r-- | drivers/mmc/card/queue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/card/queue.h b/drivers/mmc/card/queue.h index 388f099a06f5..ab89102a4baa 100644 --- a/drivers/mmc/card/queue.h +++ b/drivers/mmc/card/queue.h @@ -70,9 +70,11 @@ struct mmc_queue { int num_wr_reqs_to_start_packing; bool no_pack_for_random; struct work_struct cmdq_err_work; + struct completion cmdq_shutdown_complete; int (*err_check_fn) (struct mmc_card *, struct mmc_async_req *); void (*packed_test_fn) (struct request_queue *, struct mmc_queue_req *); + void (*cmdq_shutdown)(struct mmc_queue *); }; extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *, |
