* [PATCH v4] clk: Show correct information when fail to set clock rate
@ 2015-04-27 9:29 Chanwoo Choi
2015-05-15 1:16 ` Stephen Boyd
0 siblings, 1 reply; 4+ messages in thread
From: Chanwoo Choi @ 2015-04-27 9:29 UTC (permalink / raw)
To: mturquette, sboyd, s.nawrocki; +Cc: linux-kernel, Chanwoo Choi
This patch shows the correct information for debugging when fail to set clock
rate because original error message shows the error value instead of current
clock rate.
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
Changes from v3:
- Show the correct information (clock rate, error value, current clock rate
after fail to set clock rate)
Changes from v2:
- Show the current clock rate when fail to set clock rate
Changes from v1:
- Add error value of clk_set_rate() with current clock rate
drivers/clk/clk-conf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/clk-conf.c b/drivers/clk/clk-conf.c
index 48a65b2..000692b 100644
--- a/drivers/clk/clk-conf.c
+++ b/drivers/clk/clk-conf.c
@@ -106,8 +106,8 @@ static int __set_clk_rates(struct device_node *node, bool clk_supplier)
rc = clk_set_rate(clk, rate);
if (rc < 0)
- pr_err("clk: couldn't set %s clock rate: %d\n",
- __clk_get_name(clk), rc);
+ pr_err("clk: couldn't set %s clk rate to %d (%d), current rate: %ld\n",
+ __clk_get_name(clk), rate, rc, clk_get_rate(clk));
clk_put(clk);
}
index++;
--
1.8.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] clk: Show correct information when fail to set clock rate
2015-04-27 9:29 [PATCH v4] clk: Show correct information when fail to set clock rate Chanwoo Choi
@ 2015-05-15 1:16 ` Stephen Boyd
2015-05-15 8:44 ` Sylwester Nawrocki
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2015-05-15 1:16 UTC (permalink / raw)
To: Chanwoo Choi; +Cc: mturquette, s.nawrocki, linux-kernel
On 04/27, Chanwoo Choi wrote:
> This patch shows the correct information for debugging when fail to set clock
> rate because original error message shows the error value instead of current
> clock rate.
>
> Cc: Mike Turquette <mturquette@linaro.org>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> ---
Seems fine to me. Sylwester?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] clk: Show correct information when fail to set clock rate
2015-05-15 1:16 ` Stephen Boyd
@ 2015-05-15 8:44 ` Sylwester Nawrocki
2015-05-15 16:57 ` Stephen Boyd
0 siblings, 1 reply; 4+ messages in thread
From: Sylwester Nawrocki @ 2015-05-15 8:44 UTC (permalink / raw)
To: Stephen Boyd; +Cc: Chanwoo Choi, mturquette, linux-kernel
On 15/05/15 03:16, Stephen Boyd wrote:
> On 04/27, Chanwoo Choi wrote:
>> > This patch shows the correct information for debugging when fail to set clock
>> > rate because original error message shows the error value instead of current
>> > clock rate.
>> >
>> > Cc: Mike Turquette <mturquette@linaro.org>
>> > Cc: Stephen Boyd <sboyd@codeaurora.org>
>> > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
>> > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
>> > ---
>
> Seems fine to me. Sylwester?
I'm fine with that too.
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
--
Thanks,
Sylwester
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] clk: Show correct information when fail to set clock rate
2015-05-15 8:44 ` Sylwester Nawrocki
@ 2015-05-15 16:57 ` Stephen Boyd
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2015-05-15 16:57 UTC (permalink / raw)
To: Sylwester Nawrocki; +Cc: Chanwoo Choi, mturquette, linux-kernel
On 05/15, Sylwester Nawrocki wrote:
> On 15/05/15 03:16, Stephen Boyd wrote:
> > On 04/27, Chanwoo Choi wrote:
> >> > This patch shows the correct information for debugging when fail to set clock
> >> > rate because original error message shows the error value instead of current
> >> > clock rate.
> >> >
> >> > Cc: Mike Turquette <mturquette@linaro.org>
> >> > Cc: Stephen Boyd <sboyd@codeaurora.org>
> >> > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
> >> > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> >> > ---
> >
> > Seems fine to me. Sylwester?
>
> I'm fine with that too.
>
> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>
Thanks. Applied to clk-next.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-15 16:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 9:29 [PATCH v4] clk: Show correct information when fail to set clock rate Chanwoo Choi
2015-05-15 1:16 ` Stephen Boyd
2015-05-15 8:44 ` Sylwester Nawrocki
2015-05-15 16:57 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).