diff --git drivers clk clk drivers clk clk index 221d521b 8d21a598 100

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 221d521b..8d21a598 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -497,8 +497,15 @@ clk_mux_determine_rate_flags(struct clk_hw *hw, struct clk_rate_request *req,
if (mux_is_better_rate(req->rate, parent_req.rate,
best, flags)) {
+if (req->rate == 85500000) {
+ printk("BEST parent_req.rate=%d\n", parent_req.rate);
+}
best_parent = parent;
best = parent_req.rate;
+ } else {
+ if (req->rate == 85500000) {
+ printk("NOT BEST parent_req.rate=%d\n", parent_req.rate);
+}
}
}
@@ -804,8 +811,14 @@ static int clk_core_round_rate_nolock(struct clk_core *core,
}
if (core->ops->determine_rate) {
+ if (req->rate == 85500000) {
+ printk("OLOLO core->ops->determine_rate\n");
+ }
return core->ops->determine_rate(core->hw, req);
} else if (core->ops->round_rate) {
+ if (req->rate == 85500000) {
+ printk("OLOLO core->ops->round_rate\n");
+ }
rate = core->ops->round_rate(core->hw, req->rate,
&req->best_parent_rate);
if (rate < 0)
@@ -813,6 +826,9 @@ static int clk_core_round_rate_nolock(struct clk_core *core,
req->rate = rate;
} else if (core->flags & CLK_SET_RATE_PARENT) {
+ if (req->rate == 85500000) {
+ printk("OLOLO CLK_SET_RATE_PARENT\n");
+ }
return clk_core_round_rate_nolock(parent, req);
} else {
req->rate = core->rate;
@@ -879,6 +895,10 @@ long clk_round_rate(struct clk *clk, unsigned long rate)
clk_core_get_boundaries(clk->core, &req.min_rate, &req.max_rate);
req.rate = rate;
+if (rate == 85500000) {
+ printk("clk_round_rate rate=%d, min_rate=%d, max_rate=%d\n", rate, req.min_rate, req.max_rate);
+}
+
ret = clk_core_round_rate_nolock(clk->core, &req);
clk_prepare_unlock();