Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: rename mmc_host_done_complete() to mmc_host_can_done_complete()

It is not obvious that this functions checks capabilities. Rename it to
include '_can' like other capability helpers.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250501063325.7262-8-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Wolfram Sang and committed by
Ulf Hansson
dc03e2e9 03b31a06

+4 -4
+3 -3
drivers/mmc/core/block.c
··· 2278 2278 static void mmc_blk_mq_complete_prev_req(struct mmc_queue *mq, 2279 2279 struct request **prev_req) 2280 2280 { 2281 - if (mmc_host_done_complete(mq->card->host)) 2281 + if (mmc_host_can_done_complete(mq->card->host)) 2282 2282 return; 2283 2283 2284 2284 mutex_lock(&mq->complete_lock); ··· 2317 2317 struct mmc_host *host = mq->card->host; 2318 2318 unsigned long flags; 2319 2319 2320 - if (!mmc_host_done_complete(host)) { 2320 + if (!mmc_host_can_done_complete(host)) { 2321 2321 bool waiting; 2322 2322 2323 2323 /* ··· 2430 2430 mq->rw_wait = false; 2431 2431 2432 2432 /* Release re-tuning here where there is no synchronization required */ 2433 - if (err || mmc_host_done_complete(host)) 2433 + if (err || mmc_host_can_done_complete(host)) 2434 2434 mmc_retune_release(host); 2435 2435 2436 2436 out_post_req:
+1 -1
drivers/mmc/core/host.h
··· 44 44 return host->caps & MMC_CAP_CMD23; 45 45 } 46 46 47 - static inline bool mmc_host_done_complete(struct mmc_host *host) 47 + static inline bool mmc_host_can_done_complete(struct mmc_host *host) 48 48 { 49 49 return host->caps & MMC_CAP_DONE_COMPLETE; 50 50 }