From patchwork Sat Feb 4 20:22:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergej Sawazki X-Patchwork-Id: 9555735 X-Patchwork-Delegate: sboyd@codeaurora.org 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 C4673602B5 for ; Sat, 4 Feb 2017 20:23:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB23026E48 for ; Sat, 4 Feb 2017 20:23:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C66126E51; Sat, 4 Feb 2017 20:23:31 +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,FREEMAIL_FROM, 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 B7CF626E48 for ; Sat, 4 Feb 2017 20:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751053AbdBDUX3 (ORCPT ); Sat, 4 Feb 2017 15:23:29 -0500 Received: from mout.gmx.net ([212.227.17.22]:54691 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbdBDUX2 (ORCPT ); Sat, 4 Feb 2017 15:23:28 -0500 Received: from tron.fritz.box ([91.35.170.249]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQu9K-1d15fH1s6g-00UJWD; Sat, 04 Feb 2017 21:23:17 +0100 From: Sergej Sawazki To: mturquette@baylibre.com, sboyd@codeaurora.org Cc: linux-clk@vger.kernel.org, Sergej Sawazki , Jyri Sarha Subject: [PATCH] clk: gpio: Add debug messages for clock ops Date: Sat, 4 Feb 2017 21:22:30 +0100 Message-Id: <1486239750-24846-1-git-send-email-ce3a@gmx.de> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K0:McX339fQT3U+zSOSLDz/O04l9CkVcozd/4uiw38tYmM5uQshC35 R+3M64xwdtTl9GFXLytxJta/+aW5B96Ki+/l66NAFW2s/Mybwu8TDC6oakfrEh75JvZNoLO zIadXV01yRYclRW8GZjr5gvQiosK9fhSqGCQNNvI7by4iuBMVD+cDU+8IJvog5RaICgwFln dXfl646ethFVYBr1WFVQw== X-UI-Out-Filterresults: notjunk:1; V01:K0:keoSMX5mAyg=:HODsdRduRVCY2KqBAHwiZJ YX0LnlvOK/Cifc/RIQvoryEoUQ61LPGUBCGbmlXnGcodD2RNqLq6x2LtO2I+nwgKGlF84U+He n329Rs9NJAqZ/V5WUjCzwHtKe9rQ4BKbZYJ+akWoOfjZ5m18sv7rTTdgaTWig+Ik46rRWwnGV X+28yLiZ2a1xcjGsLjr5ugNcWLv2ex4DDeEOKMqEE/0K1wOAOxp0rHIvdrA00ESGj0yET8JVc o4VPolxuDODs7PNRTu8HPEjOnNbA+HHpz6dunGXfptHl2agskxyI8kU2mV54mSyvPhI8OVJcv iMhNCHQ5s1gpHMr08/0PGA4aYwywj6Jtfh4hKokZvMh/Si5U6VgoiKWKEO6N98b7zGV5bLR+A uyNaPabt3q8Ka3LgVMMwWykNbx6HjTF3rvEHoqU6N2USOaEHz13aqaiyHG2e4iztpST4s641u ZyQUgSzfzA7Qrur28CIaS9TR2FOZyalVlNFGtU5fs0fq+KbwiXzECJ3cwIPa2SAJq62r0pKHd o3EdWdCZjIMnu80ym/xfER91i9oBCQEegDFG8KzYndiAKpee5Y8WVfYjSL2nzN8mz+Uo10sfm jhklc+sN+DGz25gJF8ZjZ7eYV4Gp9wE2kIYYKeMKZ17D+tqtH/d89iIR6N6ZHDgs7lP+vLaz+ 0eQX5EHJ8KZ552dANZjKrXaSzmKLG/+7R3ErwvbGYO1OEnEYC0tjSUzObpFYjsCcSrfc8ufH1 XxAz6E6tMe+xhEVTM4acpS9W36B65BjyYDb7xgVXuT6hcRI/AuEIfR1/mA4SaIctRzwv9kp1z /Hdq9Cw7o2K32E4dXAnUMpEoRwwz5WgUv3rvJc2LJwj8VvcQN9Nio1z0Dt5xYRatpNnQ1lPny qVpEWE1KPU+afm9XGWk3oUMSY577gVQ3cXYh4S0YGcqoBi4bAvqfWPwyanPEyW6Sv79lrwGYk HA0frFdnClXY2cB8MMy9LX/pE1y/zRhn54uvKmoBtK/TQXd4vCKXLqU5vp+1vaCDpAv5PItbP DUaEWIg0Cfimj7/rLBV6wWUEtRoeQMetC8peTL9LmnJN 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 Debug messages are helpful when debugging the clock tree setup. Cc: Jyri Sarha Signed-off-by: Sergej Sawazki --- 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; }