diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2017-03-21 13:12:59 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-04-19 19:50:26 +0300 |
commit | 46a7253df472721e97cc9d9d088d223aed6f870a (patch) | |
tree | 0d88453b34560d0c7a20d18946966f684d7697d1 /drivers/clk/qcom/clk-smd-rpm.c | |
parent | e24f5287cd88ebd0df524b55b70b1fcd6d76d8c6 (diff) | |
download | linux-46a7253df472721e97cc9d9d088d223aed6f870a.tar.xz |
clk: qcom: clk-smd-rpm: fix rate for branch clks during handoff
rpm branch clk rate should requested as either 0 or 1 but not INT_MAX.
This patch fixes rate request for branch clocks during clk handoff.
Suggested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/clk-smd-rpm.c')
-rw-r--r-- | drivers/clk/qcom/clk-smd-rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 3487c267833e..d990fe44aef3 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -165,7 +165,7 @@ static int clk_smd_rpm_handoff(struct clk_smd_rpm *r) struct clk_smd_rpm_req req = { .key = cpu_to_le32(r->rpm_key), .nbytes = cpu_to_le32(sizeof(u32)), - .value = cpu_to_le32(INT_MAX), + .value = cpu_to_le32(r->branch ? 1 : INT_MAX), }; ret = qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE, |