Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1374152
| From | Sjoerd Simons <sjoerd.simons@collabora.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks |
| Date | 2016-04-08 13:00 +0200 |
| Message-ID | <rlCiS-2wH-5@gated-at.bofh.it> (permalink) |
| References | <rkVdT-3Ty-5@gated-at.bofh.it> <rkVxh-4kN-27@gated-at.bofh.it> <rkVQC-4wz-11@gated-at.bofh.it> <rlrx8-31p-3@gated-at.bofh.it> |
| Organization | Collabora Ltd. |
On Thu, 2016-04-07 at 16:21 -0700, Stephen Boyd wrote:
> On 04/06, Sjoerd Simons wrote:
> >
> > On Wed, 2016-04-06 at 15:11 +0200, Geert Uytterhoeven wrote:
> > >
> > > CC Mike, Stephen, linux-clk (this time with the new Mike)
> > >
> > > On Wed, Apr 6, 2016 at 2:52 PM, Sjoerd Simons
> > > <sjoerd.simons@collabora.co.uk> wrote:
> > > >
> > > >
> > > > clk_get on a disabled clock node will return EPROBE_DEFER,
> > > > which
> > > > can
> > > > cause drivers to be deferred forever if such clocks are
> > > > referenced
> > > > in
> > > > their clocks property.
> > > Is this a side effect of commit 3e5dd6f6e690048d ("clk: Ignore
> > > disabled DT
> > > clock providers")?
> > Yes it seems so. Reverting that patch means that i can drop this
> > one
> > and get the expected behaviour again.
> The DT is broken then? Is it possible to mark these status =
> "okay" so that things work again?
> >
> >
> > Though even so I'm not sure what the convention is for clocks like
> > these, the r8a7791.dtsi is inconsistent, as some are disabled while
> > others (e.g. the audio clocks) are 0hz. Would be good to get some
> > input
> > on that regardless.
> >
> What's the question here?
So the question is how to model unconnected external clocks in device-
tree.
The dtsi we're loooking at has (in pseudo dt):
device {
clock-names = "internal", "external";
clocks = <&internal, &external>
};
external {
compatible = "fixed-clock";
clock-frequency = <12345>;
status = "disabled";
};
Before 3e5dd6f6e690048d ("clk: Ignore disabled DT clock providers")
this apparently worked. Afterwards drivers getting all the clocks would
fail to probe with -EPROBE_DEFER.
Judging by your comment I assume this way of modelling it is broken
(and the behaviour caused by the patch is correct)?
And as a follow-up, is modelling unconnected clocks as enabled with a
frequency of 0hz as my proposed patch does seen as the right way of
doing things?
--
Sjoerd Simons
Collabora Ltd.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Sjoerd Simons <sjoerd.simons@collabora.co.uk> - 2016-04-06 15:00 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Geert Uytterhoeven <geert@linux-m68k.org> - 2016-04-06 15:10 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Geert Uytterhoeven <geert@linux-m68k.org> - 2016-04-06 15:20 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Sjoerd Simons <sjoerd.simons@collabora.co.uk> - 2016-04-06 15:40 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Stephen Boyd <sboyd@codeaurora.org> - 2016-04-08 01:30 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Sjoerd Simons <sjoerd.simons@collabora.co.uk> - 2016-04-08 13:00 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Stephen Boyd <sboyd@codeaurora.org> - 2016-04-14 02:20 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-04-07 01:20 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Sjoerd Simons <sjoerd.simons@collabora.co.uk> - 2016-04-07 09:10 +0200
Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-04-07 21:20 +0200
RE: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks Phil Edworthy <phil.edworthy@renesas.com> - 2016-04-08 16:30 +0200
csiph-web