Skip to content

Commit 1bb294a

Browse files
Taniya Dasbebarino
authored andcommitted
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>
1 parent 489a719 commit 1bb294a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/clk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,9 @@ static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,
29652965
{
29662966
struct clk_core *child;
29672967

2968+
clk_pm_runtime_get(c);
29682969
clk_summary_show_one(s, c, level);
2970+
clk_pm_runtime_put(c);
29692971

29702972
hlist_for_each_entry(child, &c->children, child_node)
29712973
clk_summary_show_subtree(s, child, level + 1);

0 commit comments

Comments
 (0)