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

Configure Feed

Select the types of activity you want to include in your feed.

mmc: core: Announce successful insertion of an SD UHS-II card

To inform the users about SD UHS-II cards, let's extend the print at card
insertion with a "UHS-II" substring. Within this change, it seems
reasonable to convert from using "ultra high speed" into "UHS-I speed", for
the UHS-I type, as it should makes it more clear.

Note that, the new print for UHS-II cards doesn't include the actual
selected speed mode. Instead, this is going to be added from subsequent
change.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20240913102836.6144-4-victorshihgli@gmail.com

+11 -1
+3 -1
drivers/mmc/core/bus.c
··· 346 346 if (mmc_card_hs(card)) 347 347 speed_mode = "high speed "; 348 348 else if (mmc_card_uhs(card)) 349 - speed_mode = "ultra high speed "; 349 + speed_mode = "UHS-I speed "; 350 + else if (mmc_card_uhs2(card->host)) 351 + speed_mode = "UHS-II speed "; 350 352 else if (mmc_card_ddr52(card)) 351 353 speed_mode = "high speed DDR "; 352 354 else if (mmc_card_hs200(card))
+8
include/linux/mmc/host.h
··· 638 638 card->host->ios.timing <= MMC_TIMING_UHS_DDR50; 639 639 } 640 640 641 + static inline bool mmc_card_uhs2(struct mmc_host *host) 642 + { 643 + return host->ios.timing == MMC_TIMING_UHS2_SPEED_A || 644 + host->ios.timing == MMC_TIMING_UHS2_SPEED_A_HD || 645 + host->ios.timing == MMC_TIMING_UHS2_SPEED_B || 646 + host->ios.timing == MMC_TIMING_UHS2_SPEED_B_HD; 647 + } 648 + 641 649 void mmc_retune_timer_stop(struct mmc_host *host); 642 650 643 651 static inline void mmc_retune_needed(struct mmc_host *host)