]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: qcom: Fix PLL rate configurations
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 15 Jul 2014 21:59:21 +0000 (14:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:12 +0000 (13:41 -0700)
commitffbfac661ccbafa336a514df8f0e2eb4ac943be7
tree78d0800e1a90476b44ac9eb8693c3d0f1666de5a
parenta5efefc12e00f33ba875d35d56abbb32e922fbc6
clk: qcom: Fix PLL rate configurations

commit 5b6b7490af110c2b0df807eddd00ae6290bcf50a upstream.

Sometimes we need to program PLLs with a fixed rate
configuration during driver probe. Doing this after we register
the PLLs with the clock framework causes the common clock
framework to assume the rate of the PLLs are 0. This causes all
sorts of problems for rate recalculations because the common
clock framework caches the rate once at registration time unless
a flag is set to always recalculate the rates.

Split the qcom_cc_probe() function into two pieces, map and
everything else, so that drivers which need to configure some
PLL rates or otherwise twiddle bits in the clock controller can
do so before registering clocks. This allows us to properly
detect the rates of PLLs that are programmed at boot.

Fixes: 49fc825f0cc2 "clk: qcom: Consolidate common probe code"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/qcom/common.c
drivers/clk/qcom/common.h
drivers/clk/qcom/mmcc-msm8974.c