Skip to content
Commit 63e555d9 authored by Ciprian Costea's avatar Ciprian Costea Committed by Ulf Hansson
Browse files

mmc: sdhci-esdhc-imx: obtain the 'per' clock rate after its enablement



The I.MX SDHCI driver assumes that the frequency of the 'per' clock
can be obtained even on disabled clocks, which is not always the case.

According to 'clk_get_rate' documentation, it is only valid
once the clock source has been enabled.

Signed-off-by: default avatarCiprian Costea <ciprianmarian.costea@oss.nxp.com>
Reviewed-by: default avatarHaibo Chen <haibo.chen@nxp.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240708121018.246476-3-ciprianmarian.costea@oss.nxp.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent a52b67bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment