[PATCH] mmc: sdhci-of-dwcmshc: Prevent illegal clock reduction in HS200/HS400 mode
Adrian Hunter
adrian.hunter at intel.com
Tue Dec 1 04:57:12 PST 2026
On 18/11/2026 18:28, Jakob Unterwurzacher wrote:
> 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 "<="?
Looks like it
>
> This would get rid of two of the three messages.
If the message occurs during normal operation, then
perhaps change dev_err() to dev_dbg()
You could send a patch and see if anyone objects.
More information about the Linux-rockchip
mailing list