linux/drivers/clk/qcom
Evan Green 4f5cd39a7e clk: qcom: Base rcg parent rate off plan frequency
commit c7d2a0eb6c upstream.

_freq_tbl_determine_rate uses the pre_div found in the clock plan
multiplied by the requested rate from the caller to determine the
best parent rate to set. If the requested rate is not exactly equal
to the rate that was found in the clock plan, then using the requested
rate in parent rate calculations is incorrect. For instance, if 150MHz
was requested, but 200MHz was the match found, and that plan had a
pre_div of 3, then the parent should be set to 600MHz, not 450MHz.

Signed-off-by: Evan Green <evgreen@chromium.org>
Fixes: bcd61c0f53 ("clk: qcom: Add support for root clock generators (RCGs)")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:04:52 +00:00
..
clk-branch.c clk: qcom: Add support for branches/gate clocks 2014-01-16 12:01:01 -08:00
clk-branch.h clk: qcom: Add support for branches/gate clocks 2014-01-16 12:01:01 -08:00
clk-pll.c clk: qcom: Add support for phase locked loops (PLLs) 2014-01-16 12:00:59 -08:00
clk-pll.h clk: qcom: Add support for phase locked loops (PLLs) 2014-01-16 12:00:59 -08:00
clk-rcg.c clk: qcom: Add support for root clock generators (RCGs) 2014-01-16 12:01:00 -08:00
clk-rcg.h clk: qcom: Support display RCG clocks 2014-05-29 09:30:23 -07:00
clk-rcg2.c clk: qcom: Base rcg parent rate off plan frequency 2018-11-20 18:04:52 +00:00
clk-regmap.c clk: qcom: Add a regmap type clock struct 2014-01-16 12:00:58 -08:00
clk-regmap.h clk: qcom: Add a regmap type clock struct 2014-01-16 12:00:58 -08:00
common.c clk: qcom: Fix PLL rate configurations 2014-10-05 13:41:12 -07:00
common.h clk: qcom: Fix PLL rate configurations 2014-10-05 13:41:12 -07:00
gcc-msm8660.c clk: qcom: Fix msm8660 GCC probe 2014-05-16 16:53:07 -07:00
gcc-msm8960.c clk: qcom: Various fixes for MSM8960's global clock controller 2014-04-30 11:54:16 -07:00
gcc-msm8974.c clk: qcom: Support msm8974pro global clock control hardware 2014-05-29 09:30:24 -07:00
Kconfig clk: qcom: Add basic support for APQ8064 global clock controller clocks 2014-04-30 11:54:16 -07:00
Makefile clk: qcom: Consolidate common probe code 2014-04-30 11:51:51 -07:00
mmcc-msm8960.c clk: qcom: mdp_lut_clk is a child of mdp_src 2014-10-05 13:41:12 -07:00
mmcc-msm8974.c clk: qcom: Fix PLL rate configurations 2014-10-05 13:41:12 -07:00
reset.c clk: qcom: Add reset controller support 2014-01-16 12:01:02 -08:00
reset.h clk: qcom: Add reset controller support 2014-01-16 12:01:02 -08:00