mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 15:02:40 -04:00
mmc: block: blk-mq: Add support for direct completion
For blk-mq, add support for completing requests directly in the ->done callback. That means that error handling and urgent background operations must be handled by recovery_work in that case. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Ulf Hansson
parent
8ee82bda23
commit
10f21df4a2
@@ -41,6 +41,11 @@ static inline int mmc_host_cmd23(struct mmc_host *host)
|
||||
return host->caps & MMC_CAP_CMD23;
|
||||
}
|
||||
|
||||
static inline bool mmc_host_done_complete(struct mmc_host *host)
|
||||
{
|
||||
return host->caps & MMC_CAP_DONE_COMPLETE;
|
||||
}
|
||||
|
||||
static inline int mmc_boot_partition_access(struct mmc_host *host)
|
||||
{
|
||||
return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC);
|
||||
|
||||
Reference in New Issue
Block a user