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: Respect quirk_max_rate for non-UHS SDIO card

The card-quirk was added to limit the clock-rate for a card with UHS-mode
support, although let's respect the quirk for non-UHS mode too, to make the
behaviour consistent.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Message-ID: <1732268242-72799-1-git-send-email-shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Shawn Lin and committed by
Ulf Hansson
a2a44f8d fac04efc

+2
+2
drivers/mmc/core/sdio.c
··· 458 458 if (mmc_card_sd_combo(card)) 459 459 max_dtr = min(max_dtr, mmc_sd_get_max_clock(card)); 460 460 461 + max_dtr = min_not_zero(max_dtr, card->quirk_max_rate); 462 + 461 463 return max_dtr; 462 464 } 463 465