diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-09-22 08:36:51 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-10-30 06:45:49 -0400 |
commit | 6c0cedd1ef9527ef13e66875746570e76a3188a7 (patch) | |
tree | 62142b1581211372e8adae97b574979cac6c15a2 /drivers/mmc/core/sdio_irq.c | |
parent | 9ca28c5cd967e07e708a407eec59894e2e643670 (diff) |
mmc: core: Introduce host claiming by context
Currently the host can be claimed by a task. Change this so that the host
can be claimed by a context that may or may not be a task. This provides
for the host to be claimed by a block driver queue to support blk-mq, while
maintaining compatibility with the existing use of mmc_claim_host().
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sdio_irq.c')
-rw-r--r-- | drivers/mmc/core/sdio_irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/sdio_irq.c b/drivers/mmc/core/sdio_irq.c index c771843e4c15..7a2eaf8410a3 100644 --- a/drivers/mmc/core/sdio_irq.c +++ b/drivers/mmc/core/sdio_irq.c | |||
@@ -155,7 +155,8 @@ static int sdio_irq_thread(void *_host) | |||
155 | * holding of the host lock does not cover too much work | 155 | * holding of the host lock does not cover too much work |
156 | * that doesn't require that lock to be held. | 156 | * that doesn't require that lock to be held. |
157 | */ | 157 | */ |
158 | ret = __mmc_claim_host(host, &host->sdio_irq_thread_abort); | 158 | ret = __mmc_claim_host(host, NULL, |
159 | &host->sdio_irq_thread_abort); | ||
159 | if (ret) | 160 | if (ret) |
160 | break; | 161 | break; |
161 | ret = process_sdio_pending_irqs(host); | 162 | ret = process_sdio_pending_irqs(host); |