]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mmc: msm_sdhci: Use max-frequency to get clock rate 958/head
authorVaradarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Thu, 16 Apr 2026 05:11:51 +0000 (10:41 +0530)
committerPeng Fan <peng.fan@nxp.com>
Wed, 6 May 2026 02:20:30 +0000 (10:20 +0800)
commitf07c15c16a1bbdf8eaa9ad79af774e31948bcba3
tree9083f998ad2e544afd86fb7a8290160faa5e5c41
parent2a628fee83c1f8d0f260f51b93c342d9a788986a
mmc: msm_sdhci: Use max-frequency to get clock rate

msm_sdc_clk_init() uses clock-frequency to get the clock rate for SDC
clocks. However, the DT files seem to use max-frequency for the same.
Since msm_sdc_clk_init() doesn't find clock-frequency in the DT, it sets
201500000 as the clock rate and this results in timeout errors on IPQ
platforms.

Additionally, clock-frequency is not DT bindings compliant. Hence, get
clock rate using DT bindings compliant max-frequency.

Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/msm_sdhci.c