summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-conf.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-04-27 11:29:52 +0200
committerStephen Boyd <sboyd@codeaurora.org>2015-05-15 18:55:27 +0200
commit2885c3b2a3da7902314fa1d0a5b603eeea7c7302 (patch)
tree9076cee69717244a19fab67110d9d497fb2c37f6 /drivers/clk/clk-conf.c
parentclk: Kconfig: Move bcm Kconfig into clk menu (diff)
downloadlinux-2885c3b2a3da7902314fa1d0a5b603eeea7c7302.tar.xz
linux-2885c3b2a3da7902314fa1d0a5b603eeea7c7302.zip
clk: Show correct information when fail to set clock rate
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> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk-conf.c')
-rw-r--r--drivers/clk/clk-conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clk/clk-conf.c b/drivers/clk/clk-conf.c
index 48a65b2b4027..35a396bc9672 100644
--- a/drivers/clk/clk-conf.c
+++ b/drivers/clk/clk-conf.c
@@ -106,8 +106,9 @@ 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++;