diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-05-29 12:35:31 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-06-15 16:38:40 -0400 |
commit | f17f4adfe48b64b23247b792c0e5ab998b7ab34e (patch) | |
tree | 6c960221b4f466f51f179c4a1080f54cef042e30 /drivers/base/power/clock_ops.c | |
parent | 3fc3a0be0dab352e065d1dad7d3f81953ed0d4bc (diff) |
PM / clk: Print acquired clock name in addition to con_id
Currently the con_id of the acquired clock is printed for debugging
purposes. But in several cases, the con_id is NULL, which doesn't
provide much debugging information when printed. These cases are:
- When explicitly passing a NULL con_id (which means the first clock
tied to the device, if available),
- When not using pm_clk_add(), but pm_clk_add_clk() (which takes a
"struct clk *" directly).
Hence print the actual clock name in addition to (and not instead of;
thanks Grygorii Strashko!) the con_id.
Note that the clock name is not available with legacy clock frameworks,
and the hex pointer address will be printed instead.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/clock_ops.c')
-rw-r--r-- | drivers/base/power/clock_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/power/clock_ops.c b/drivers/base/power/clock_ops.c index 442ce010559b..acef9f9f759a 100644 --- a/drivers/base/power/clock_ops.c +++ b/drivers/base/power/clock_ops.c | |||
@@ -68,7 +68,8 @@ static void pm_clk_acquire(struct device *dev, struct pm_clock_entry *ce) | |||
68 | } else { | 68 | } else { |
69 | clk_prepare(ce->clk); | 69 | clk_prepare(ce->clk); |
70 | ce->status = PCE_STATUS_ACQUIRED; | 70 | ce->status = PCE_STATUS_ACQUIRED; |
71 | dev_dbg(dev, "Clock %s managed by runtime PM.\n", ce->con_id); | 71 | dev_dbg(dev, "Clock %pC con_id %s managed by runtime PM.\n", |
72 | ce->clk, ce->con_id); | ||
72 | } | 73 | } |
73 | } | 74 | } |
74 | 75 | ||