summaryrefslogtreecommitdiff
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorTaniya Das <tdas@codeaurora.org>2021-12-20 22:13:55 +0530
committerStephen Boyd <sboyd@kernel.org>2022-01-05 17:20:23 -0800
commit1bb294a7981c737e2311a78e4086635ac0220ace (patch)
tree89d5e852c611ac204529d40a8ac2c2195967ad26 /drivers/clk/clk.c
parent489a71964f9d74e697a12cd0ace20ed829eb1f93 (diff)
clk: Enable/Disable runtime PM for clk_summary
The registers for some clocks in the SOC area, which are under the power domain are required to be enabled before accessing them. During the clk_summary if the power-domains are not enabled they could result into NoC errors. Thus ensure the register access of the clock controller is done with pm_untime_get/put functions. Signed-off-by: Taniya Das <tdas@codeaurora.org> Link: https://lore.kernel.org/r/1640018638-19436-3-git-send-email-tdas@codeaurora.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index ecb2a732a20d..a04891872e2e 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2965,7 +2965,9 @@ static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,
{
struct clk_core *child;
+ clk_pm_runtime_get(c);
clk_summary_show_one(s, c, level);
+ clk_pm_runtime_put(c);
hlist_for_each_entry(child, &c->children, child_node)
clk_summary_show_subtree(s, child, level + 1);