]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
mmc: rename mmc_boot_partition_access() to mmc_host_can_access_boot()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 1 May 2025 06:33:29 +0000 (08:33 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 15:07:48 +0000 (17:07 +0200)
It is not obvious that this functions checks capabilities. Rename it to
include '_can' like other capability helpers and reword it slightly.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250501063325.7262-10-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.h
drivers/mmc/core/mmc.c

index c112191cad6afe1b89c754771d340991b6ea91f9..5941d68ff98949a25a15e262187a45312608569b 100644 (file)
@@ -49,7 +49,7 @@ static inline bool mmc_host_can_done_complete(struct mmc_host *host)
        return host->caps & MMC_CAP_DONE_COMPLETE;
 }
 
-static inline int mmc_boot_partition_access(struct mmc_host *host)
+static inline int mmc_host_can_access_boot(struct mmc_host *host)
 {
        return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC);
 }
index c2b92b508438edd7e90c378ab7755038d50d0965..5be9b42d5057eb7d0bd5840a15a93119716724cf 100644 (file)
@@ -459,7 +459,7 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
                 * There are two boot regions of equal size, defined in
                 * multiples of 128K.
                 */
-               if (ext_csd[EXT_CSD_BOOT_MULT] && mmc_boot_partition_access(card->host)) {
+               if (ext_csd[EXT_CSD_BOOT_MULT] && mmc_host_can_access_boot(card->host)) {
                        for (idx = 0; idx < MMC_NUM_BOOT_PARTITION; idx++) {
                                part_size = ext_csd[EXT_CSD_BOOT_MULT] << 17;
                                mmc_part_add(card, part_size,