mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 14:56:44 +07:00
clk: qcom: lcc-msm8960: Fix PLL rate detection
regmap_read() returns 0 on success, not the value of the register
that is read. Fix it so we properly detect the frequency plan.
Fixes: b82875ee07
"clk: qcom: Add MSM8960/APQ8064 LPASS clock
controller (LCC) driver"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
This commit is contained in:
parent
7dd47b8ef5
commit
84b919fdb8
@ -547,7 +547,7 @@ static int lcc_msm8960_probe(struct platform_device *pdev)
|
|||||||
return PTR_ERR(regmap);
|
return PTR_ERR(regmap);
|
||||||
|
|
||||||
/* Use the correct frequency plan depending on speed of PLL4 */
|
/* Use the correct frequency plan depending on speed of PLL4 */
|
||||||
val = regmap_read(regmap, 0x4, &val);
|
regmap_read(regmap, 0x4, &val);
|
||||||
if (val == 0x12) {
|
if (val == 0x12) {
|
||||||
slimbus_src.freq_tbl = clk_tbl_aif_osr_492;
|
slimbus_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||||
mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||||
|
Loading…
Reference in New Issue
Block a user