diff mbox

[3/3] clk: si5351: Add a debug message for PLL reset

Message ID 1502547783-24685-4-git-send-email-sergej@taudac.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Sergej Sawazki Aug. 12, 2017, 2:23 p.m. UTC
Print a debug message when resetting a PLL. It is useful to figure out
what PLL is resetted and when.

Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Rabeeh Khoury <rabeeh@solid-run.com>
Signed-off-by: Sergej Sawazki <sergej@taudac.com>
---
 drivers/clk/clk-si5351.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c
index aa8d8d9..7a122c7 100644
--- a/drivers/clk/clk-si5351.c
+++ b/drivers/clk/clk-si5351.c
@@ -917,6 +917,10 @@  void _si5351_clkout_reset_pll(struct si5351_driver_data *drvdata, int num)
 	si5351_reg_write(drvdata, SI5351_PLL_RESET,
 			 (val & SI5351_CLK_PLL_SELECT) ? SI5351_PLL_RESET_B :
 			 SI5351_PLL_RESET_A);
+
+	dev_dbg(&drvdata->client->dev, "%s - %s: pll = %d\n",
+		__func__, clk_hw_get_name(&drvdata->clkout[num].hw),
+		(val & SI5351_CLK_PLL_SELECT) ? 1 : 0);
 }
 
 static int si5351_clkout_prepare(struct clk_hw *hw)