diff options
author | Mike Turquette <mturquette@linaro.org> | 2014-02-24 16:08:41 -0800 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-02-24 17:13:55 -0800 |
commit | 86bcfa2e87c42b8af77188e7a939e952199d4da1 (patch) | |
tree | 6a0e9bab07e4eb9a930a3a9b782b6a957f2ab3b4 /drivers/clk/clk.c | |
parent | 05135b4cb4e20a3f36f09e7e5c798eac30c49c21 (diff) | |
download | op-kernel-dev-86bcfa2e87c42b8af77188e7a939e952199d4da1.zip op-kernel-dev-86bcfa2e87c42b8af77188e7a939e952199d4da1.tar.gz |
clk: add pr_debug & kerneldoc around clk notifiers
Both the pr_err and the additional kerneldoc aim to help when debugging
errors thrown from within a clock rate-change notifier callback.
Reported-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index a6f079d..f30e6af 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1339,8 +1339,11 @@ static int __clk_speculate_rates(struct clk *clk, unsigned long parent_rate) if (clk->notifier_count) ret = __clk_notify(clk, PRE_RATE_CHANGE, clk->rate, new_rate); - if (ret & NOTIFY_STOP_MASK) + if (ret & NOTIFY_STOP_MASK) { + pr_debug("%s: clk notifier callback for clock %s aborted with error %d\n", + __func__, clk->name, ret); goto out; + } hlist_for_each_entry(child, &clk->children, child_node) { ret = __clk_speculate_rates(child, new_rate); |