From patchwork Sat Aug 12 14:23:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergej Sawazki X-Patchwork-Id: 9897263 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 750E260236 for ; Sat, 12 Aug 2017 14:23:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6723828683 for ; Sat, 12 Aug 2017 14:23:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C2A528BC2; Sat, 12 Aug 2017 14:23:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 747E028BC6 for ; Sat, 12 Aug 2017 14:23:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750995AbdHLOXl (ORCPT ); Sat, 12 Aug 2017 10:23:41 -0400 Received: from s62.goserver.host ([37.17.224.62]:40565 "EHLO s62.goserver.host" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbdHLOXk (ORCPT ); Sat, 12 Aug 2017 10:23:40 -0400 Received: from duke.fritz.box (p5B23AD9C.dip0.t-ipconnect.de [91.35.173.156]) by s62.goserver.host (Postfix) with ESMTPSA id 38AFFBD016EE; Sat, 12 Aug 2017 16:23:39 +0200 (CEST) From: Sergej Sawazki To: sboyd@codeaurora.org, mturquette@baylibre.com Cc: sebastian.hesselbarth@gmail.com, rabeeh@solid-run.com, linux@armlinux.org.uk, linux-clk@vger.kernel.org, Sergej Sawazki Subject: [PATCH 3/3] clk: si5351: Add a debug message for PLL reset Date: Sat, 12 Aug 2017 16:23:03 +0200 Message-Id: <1502547783-24685-4-git-send-email-sergej@taudac.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502547783-24685-1-git-send-email-sergej@taudac.com> References: <1502547783-24685-1-git-send-email-sergej@taudac.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Print a debug message when resetting a PLL. It is useful to figure out what PLL is resetted and when. Cc: Sebastian Hesselbarth Cc: Rabeeh Khoury Signed-off-by: Sergej Sawazki --- drivers/clk/clk-si5351.c | 4 ++++ 1 file changed, 4 insertions(+) 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)