From fb46a76de1c8472786e5269f0c7965cdbe95095f Mon Sep 17 00:00:00 2001 From: Jagadeesh Kona Date: Wed, 17 Feb 2021 17:21:41 +0530 Subject: [PATCH] clk: qcom: clk-rcg2: Add enable & disable callbacks for RCG floor ops If enable safe config is true and a rate scaling request comes while RCG is in disabled state, RCG's new configuration update would be done as part of enabling the RCG. Hence add the enable and disable callbacks for floor ops to properly configure the RCG in all cases. Change-Id: I3621e0dd2cb948cb523cd85659d0de0359ba5829 Signed-off-by: Jagadeesh Kona --- drivers/clk/qcom/clk-rcg2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c index 6c6d2c4e965d..782ba871e3a0 100644 --- a/drivers/clk/qcom/clk-rcg2.c +++ b/drivers/clk/qcom/clk-rcg2.c @@ -887,6 +887,8 @@ const struct clk_ops clk_rcg2_floor_ops = { .pre_rate_change = clk_pre_change_regmap, .post_rate_change = clk_post_change_regmap, .is_enabled = clk_rcg2_is_enabled, + .enable = clk_rcg2_enable, + .disable = clk_rcg2_disable, .get_parent = clk_rcg2_get_parent, .set_parent = clk_rcg2_set_parent, .recalc_rate = clk_rcg2_recalc_rate,