]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
clk: qcom: clk-smd-rpm: Fix the reported rate of branches
authorGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 17 Jul 2017 15:35:42 +0000 (18:35 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 18 Jul 2017 01:22:30 +0000 (18:22 -0700)
As there is no way to actually query the hardware for the current clock
rate, now racalc_rate() just returns the last rate that was previously
set. But if the rate was not set yet, we return the bogus rate of 1000Hz.

The branch clocks have the same rate as their parent, so in this case we
just need to remove recalc_rate ops and then the core framework will handle
this automagically. The round_rate() is unused, so remove it as well.

Reported-by: Archit Taneja <architt@codeaurora.org>
Fixes: 00f64b58874e ("clk: qcom: Add support for SMD-RPM Clocks")
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/clk-smd-rpm.c

index d990fe44aef33986609fd4d0e7398b3732228b86..cc03d5508627b3ee11cf17eb8762b94f21740f16 100644 (file)
@@ -412,8 +412,6 @@ static const struct clk_ops clk_smd_rpm_ops = {
 static const struct clk_ops clk_smd_rpm_branch_ops = {
        .prepare        = clk_smd_rpm_prepare,
        .unprepare      = clk_smd_rpm_unprepare,
-       .round_rate     = clk_smd_rpm_round_rate,
-       .recalc_rate    = clk_smd_rpm_recalc_rate,
 };
 
 /* msm8916 */