From: Sergej Sawazki <ce3a@gmx.de>
To: mturquette@baylibre.com, sboyd@codeaurora.org
Cc: linux-clk@vger.kernel.org, Sergej Sawazki <ce3a@gmx.de>,
Jyri Sarha <jsarha@ti.com>
Subject: [PATCH] clk: gpio: Add debug messages for clock ops
Date: Sat, 4 Feb 2017 21:22:30 +0100 [thread overview]
Message-ID: <1486239750-24846-1-git-send-email-ce3a@gmx.de> (raw)
Debug messages are helpful when debugging the clock tree setup.
Cc: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Sergej Sawazki <ce3a@gmx.de>
---
drivers/clk/clk-gpio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index 86b2457..012c289 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -38,6 +38,7 @@ static int clk_gpio_gate_enable(struct clk_hw *hw)
struct clk_gpio *clk = to_clk_gpio(hw);
gpiod_set_value(clk->gpiod, 1);
+ pr_debug("%s clock enabled\n", clk_hw_get_name(hw));
return 0;
}
@@ -47,6 +48,7 @@ static void clk_gpio_gate_disable(struct clk_hw *hw)
struct clk_gpio *clk = to_clk_gpio(hw);
gpiod_set_value(clk->gpiod, 0);
+ pr_debug("%s clock disabled\n", clk_hw_get_name(hw));
}
static int clk_gpio_gate_is_enabled(struct clk_hw *hw)
@@ -83,6 +85,7 @@ static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index)
struct clk_gpio *clk = to_clk_gpio(hw);
gpiod_set_value(clk->gpiod, index);
+ pr_debug("%s set parent %d\n", clk_hw_get_name(hw), index);
return 0;
}
--
2.7.4
next reply other threads:[~2017-02-04 20:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-04 20:22 Sergej Sawazki [this message]
2017-02-06 19:41 ` [PATCH] clk: gpio: Add debug messages for clock ops Stephen Boyd
2017-02-06 20:46 ` Sergej Sawazki
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=1486239750-24846-1-git-send-email-ce3a@gmx.de \
--to=ce3a@gmx.de \
--cc=jsarha@ti.com \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.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