[PATCH] mmc: sdhci-of-dwcmshc: Prevent illegal clock reduction in HS200/HS400 mode
Jakob Unterwurzacher
jakob.unterwurzacher at cherry.de
Wed Nov 18 08:28:57 PST 2026
On 12/22/25 08:11, Shawn Lin wrote:
> When operating in HS200 or HS400 timing modes, reducing the clock frequency
> below 52MHz will lead to link broken as the Rockchip DWC MSHC controller
> requires maintaining a minimum clock of 52MHz in these modes.
[...]
>
> if (clock <= 52000000) {
> + if (host->mmc->ios.timing == MMC_TIMING_MMC_HS200 ||
> + host->mmc->ios.timing == MMC_TIMING_MMC_HS400) {
> + dev_err(mmc_dev(host->mmc),
> + "Can't reduce the clock below 52MHz in HS200/HS400 mode");
> + return;
> + }
Hi,
Booting v7.4-rc3 on RK3588-Tiger, this error message triggers three
times (I have locally added "clk=" to the message for debugging):
> root at tiger-debian-debos:~# dmesg | grep "reduce the clock"
> [ 0.585607] sdhci-dwcmshc fe2e0000.mmc: Can't reduce the clock below 52MHz in HS200/HS400 mode (clk=733137)
> [ 0.585625] sdhci-dwcmshc fe2e0000.mmc: Can't reduce the clock below 52MHz in HS200/HS400 mode (clk=52000000)
> [ 0.585636] sdhci-dwcmshc fe2e0000.mmc: Can't reduce the clock below 52MHz in HS200/HS400 mode (clk=52000000)
Should the error message trigger only below 52000000,
that is, "<" instead of "<="?
This would get rid of two of the three messages.
Thanks,
Jakob
More information about the Linux-rockchip
mailing list