From: Geert Uytterhoeven <geert+renesas@glider.be>
To: linux-sh@vger.kernel.org
Subject: [PATCH 4/5] [DEBUG] clk/mstp: Monitor MSTP clock enable/disable
Date: Tue, 15 Apr 2014 12:45:23 +0000 [thread overview]
Message-ID: <1397565924-23541-5-git-send-email-geert+renesas@glider.be> (raw)
Not-Yet-Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/clk/shmobile/clk-mstp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/clk/shmobile/clk-mstp.c b/drivers/clk/shmobile/clk-mstp.c
index 4f5e2c6ec853..2e3c08fff173 100644
--- a/drivers/clk/shmobile/clk-mstp.c
+++ b/drivers/clk/shmobile/clk-mstp.c
@@ -16,6 +16,7 @@
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/spinlock.h>
+#include <linux/clk-private.h>
/*
* MSTP clocks. We can't use standard gate clocks as we need to poll on the
@@ -62,6 +63,7 @@ static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable)
unsigned int i;
u32 value;
+pr_info("MSTP %s %s\n", hw->clk->name, enable ? "ON" : "OFF");
spin_lock_irqsave(&group->lock, flags);
value = clk_readl(group->smstpcr);
@@ -150,6 +152,7 @@ cpg_mstp_clock_register(const char *name, const char *parent_name,
if (IS_ERR(clk))
kfree(clock);
+//pr_info("%s: clk_register %p name %s parent %s\n", __func__, clk, name, parent_name);
return clk;
}
@@ -221,6 +224,7 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
* FIXME: Remove this when all devices that require a
* clock will be instantiated from DT.
*/
+//pr_info("%s: clk_register_clkdev %p con_id %s\n", __func__, clks[clkidx], name);
clk_register_clkdev(clks[clkidx], name, NULL);
} else {
pr_err("%s: failed to register %s %s clock (%ld)\n",
--
1.7.9.5
reply other threads:[~2014-04-15 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1397565924-23541-5-git-send-email-geert+renesas@glider.be \
--to=geert+renesas@glider.be \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).