2022-10-18 21:46:43 +00:00
|
|
|
From 2399d181557d94ae9a2686926cd25768f132e4b4 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
|
|
Date: Fri, 18 Mar 2022 16:12:14 +0100
|
|
|
|
Subject: [PATCH 7/9] clk: qcom: krait-cc: drop pr_info and use dev_info
|
|
|
|
|
|
|
|
Replace pr_info() with dev_info() to provide better diagnostics.
|
|
|
|
|
|
|
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|
|
|
---
|
|
|
|
drivers/clk/qcom/krait-cc.c | 8 ++++----
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/clk/qcom/krait-cc.c
|
|
|
|
+++ b/drivers/clk/qcom/krait-cc.c
|
2023-05-22 16:12:08 +00:00
|
|
|
@@ -423,25 +423,25 @@ static int krait_cc_probe(struct platfor
|
|
|
|
cur_rate = clk_get_rate(clks[l2_mux]);
|
2022-10-18 21:46:43 +00:00
|
|
|
aux_rate = 384000000;
|
|
|
|
if (cur_rate < aux_rate) {
|
|
|
|
- pr_info("L2 @ Undefined rate. Forcing new rate.\n");
|
|
|
|
+ dev_info(dev, "L2 @ Undefined rate. Forcing new rate.\n");
|
|
|
|
cur_rate = aux_rate;
|
|
|
|
}
|
|
|
|
clk_set_rate(clks[l2_mux], aux_rate);
|
|
|
|
clk_set_rate(clks[l2_mux], 2);
|
|
|
|
clk_set_rate(clks[l2_mux], cur_rate);
|
|
|
|
- pr_info("L2 @ %lu KHz\n", clk_get_rate(clks[l2_mux]) / 1000);
|
|
|
|
+ dev_info(dev, "L2 @ %lu KHz\n", clk_get_rate(clks[l2_mux]) / 1000);
|
|
|
|
for_each_possible_cpu(cpu) {
|
|
|
|
clk = clks[cpu];
|
|
|
|
cur_rate = clk_get_rate(clk);
|
|
|
|
if (cur_rate < aux_rate) {
|
|
|
|
- pr_info("CPU%d @ Undefined rate. Forcing new rate.\n", cpu);
|
|
|
|
+ dev_info(dev, "CPU%d @ Undefined rate. Forcing new rate.\n", cpu);
|
|
|
|
cur_rate = aux_rate;
|
|
|
|
}
|
|
|
|
|
|
|
|
clk_set_rate(clk, aux_rate);
|
|
|
|
clk_set_rate(clk, 2);
|
|
|
|
clk_set_rate(clk, cur_rate);
|
|
|
|
- pr_info("CPU%d @ %lu KHz\n", cpu, clk_get_rate(clk) / 1000);
|
|
|
|
+ dev_info(dev, "CPU%d @ %lu KHz\n", cpu, clk_get_rate(clk) / 1000);
|
|
|
|
}
|
|
|
|
|
|
|
|
of_clk_add_provider(dev->of_node, krait_of_get, clks);
|