Skip to content

Commit a2a44f8

Browse files
shawn1221Ulf Hansson
authored andcommitted
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>
1 parent fac04ef commit a2a44f8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/mmc/core/sdio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ static unsigned mmc_sdio_get_max_clock(struct mmc_card *card)
458458
if (mmc_card_sd_combo(card))
459459
max_dtr = min(max_dtr, mmc_sd_get_max_clock(card));
460460

461+
max_dtr = min_not_zero(max_dtr, card->quirk_max_rate);
462+
461463
return max_dtr;
462464
}
463465

0 commit comments

Comments
 (0)