From: Stephen Boyd <sboyd@kernel.org>
To: Matthias Kaehlcke <mka@chromium.org>, Taniya Das <tdas@codeaurora.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
David Brown <david.brown@linaro.org>,
Rajendra Nayak <rnayak@codeaurora.org>,
linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, robh@kernel.org, robh+dt@kernel.org,
Jordan Crouse <jcrouse@codeaurora.org>,
Jeykumar Sankaran <jsanka@codeaurora.org>,
Sean Paul <seanpaul@chromium.org>,
Rob Clark <robdclark@chromium.org>
Subject: Re: [PATCH v4 5/5] clk: qcom: Add Global Clock controller (GCC) driver for SC7180
Date: Thu, 07 Nov 2019 13:06:06 -0800 [thread overview]
Message-ID: <20191107210606.E536F21D79@mail.kernel.org> (raw)
In-Reply-To: <20191031174149.GD27773@google.com>
Quoting Matthias Kaehlcke (2019-10-31 10:41:49)
> Hi Taniya,
>
> On Thu, Oct 31, 2019 at 04:59:26PM +0530, Taniya Das wrote:
> > Hi Matthias,
> >
> > Thanks for your comments.
> >
> > On 10/29/2019 11:29 PM, Matthias Kaehlcke wrote:
> > > Hi Taniya,
> > >
> > > On Mon, Oct 14, 2019 at 03:53:08PM +0530, Taniya Das wrote:
> > > > Add support for the global clock controller found on SC7180
> > > > based devices. This should allow most non-multimedia device
> > > > drivers to probe and control their clocks.
> > > >
> > > > Signed-off-by: Taniya Das <tdas@codeaurora.org>
> >
> > >
> > > v3 also had
> > >
> > > + [GCC_DISP_AHB_CLK] = &gcc_disp_ahb_clk.clkr,
> > >
> > > Removing it makes the dpu_mdss driver unhappy:
> > >
> > > [ 2.999855] dpu_mdss_enable+0x2c/0x58->msm_dss_enable_clk: 'iface' is not available
> > >
> > > because:
> > >
> > > mdss: mdss@ae00000 {
> > > ...
> > >
> > > => clocks = <&gcc GCC_DISP_AHB_CLK>,
> > > <&gcc GCC_DISP_HF_AXI_CLK>,
> > > <&dispcc DISP_CC_MDSS_MDP_CLK>;
> > > clock-names = "iface", "gcc_bus", "core";
> > > };
> > >
> >
> > The basic idea as you mentioned below was to move the CRITICAL clocks to
> > probe. The clock provider to return NULL in case the clocks are not
> > registered.
> > This was discussed with Stephen on v3. Thus I submitted the below patch.
> > clk: qcom: common: Return NULL from clk_hw OF provider.
>
> I see. My assumption was that the entire clock hierarchy should be registered,
> but Stephen almost certainly knows better :)
>
> > Yes it would throw these warnings, but no functional issue is observed from
> > display. I have tested it on the cheza board.
>
> The driver considers it an error (uses DEV_ERR to log the message) and doesn't
> handle other clocks when one is found missing. I'm not really famililar with
> the dpu_mdss driver, but I imagine this can have some side effects. Added some
> of the authors/contributors to cc.
NULL is a valid clk pointer returned by clk_get(). What is the display
driver doing that makes it consider NULL an error?
next prev parent reply other threads:[~2019-11-07 21:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 10:23 [PATCH v4 0/5] Add Global Clock controller (GCC) driver for SC7180 Taniya Das
2019-10-14 10:23 ` [PATCH v4 1/5] clk: qcom: rcg: update the DFS macro for RCG Taniya Das
2019-11-07 21:11 ` Stephen Boyd
2019-10-14 10:23 ` [PATCH v4 2/5] clk: qcom: common: Return NULL from clk_hw OF provider Taniya Das
2019-11-07 21:11 ` Stephen Boyd
2019-10-14 10:23 ` [PATCH v4 3/5] dt-bindings: clock: Add YAML schemas for the QCOM GCC clock bindings Taniya Das
2019-10-14 16:49 ` Rob Herring
2019-10-14 16:49 ` Rob Herring
2019-11-07 21:11 ` Stephen Boyd
2019-10-14 10:23 ` [PATCH v4 4/5] dt-bindings: clock: Introduce " Taniya Das
2019-10-14 16:50 ` Rob Herring
2019-10-14 16:50 ` Rob Herring
2019-11-07 21:11 ` Stephen Boyd
2019-10-14 10:23 ` [PATCH v4 5/5] clk: qcom: Add Global Clock controller (GCC) driver for SC7180 Taniya Das
2019-10-29 17:59 ` Matthias Kaehlcke
2019-10-31 11:29 ` Taniya Das
2019-10-31 17:41 ` Matthias Kaehlcke
2019-11-07 21:06 ` Stephen Boyd [this message]
2019-11-08 2:06 ` Rob Clark
2019-11-08 6:35 ` Stephen Boyd
2019-11-08 16:54 ` Rob Clark
2019-11-08 18:42 ` Stephen Boyd
2019-11-08 19:40 ` Rob Clark
2019-11-08 21:14 ` Stephen Boyd
2019-11-14 1:02 ` Matthias Kaehlcke
2019-11-14 5:30 ` Rob Clark
2019-11-14 17:04 ` Matthias Kaehlcke
2019-11-07 21:12 ` Stephen Boyd
2019-11-14 17:34 ` Matthias Kaehlcke
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=20191107210606.E536F21D79@mail.kernel.org \
--to=sboyd@kernel.org \
--cc=david.brown@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jcrouse@codeaurora.org \
--cc=jsanka@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=mka@chromium.org \
--cc=mturquette@baylibre.com \
--cc=rnayak@codeaurora.org \
--cc=robdclark@chromium.org \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=seanpaul@chromium.org \
--cc=tdas@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.