]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Fix PLL_1416X not rounding rates
authorLeonard Crestez <leonard.crestez@nxp.com>
Fri, 12 Apr 2019 14:10:03 +0000 (14:10 +0000)
committerStephen Boyd <sboyd@kernel.org>
Fri, 12 Apr 2019 21:21:43 +0000 (14:21 -0700)
commit526135472341e9dd2dea45ecb2c47f26008fb671
treea052db2d577c89547a1188d072fe8eca197e6027
parent62adb0c318f158f548b5c2c7d943c014978df620
clk: imx: Fix PLL_1416X not rounding rates

Code which initializes the "clk_init_data.ops" checks pll->rate_table
before that field is ever assigned to so it always picks
"clk_pll1416x_min_ops".

This breaks dynamic rate rounding for features such as cpufreq.

Fix by checking pll_clk->rate_table instead, here pll_clk refers to
the constant initialization data coming from per-soc clk driver.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Fixes: 7b05f9ea0569 ("clk: imx: Add PLLs driver for imx8mm soc")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-pll14xx.c