All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: rob.herring@calxeda.com, pawel.moll@arm.com,
	mark.rutland@arm.com, ian.campbell@citrix.com,
	grant.likely@linaro.org, devicetree@vger.kernel.org,
	linux-sh@vger.kernel.org, nobuhiro.iwamatsu.yj@renesas.com,
	rob@landley.net, linux-doc@vger.kernel.org
Subject: Re: [PATCH v2 2/2] sh_eth: add device tree support
Date: Tue, 10 Sep 2013 22:21:25 +0000	[thread overview]
Message-ID: <522F9B65.1020606@wwwdotorg.org> (raw)
In-Reply-To: <522F93A5.6010709@cogentembedded.com>

On 09/10/2013 03:48 PM, Sergei Shtylyov wrote:
> Hello.
> 
> On 09/11/2013 12:07 AM, Stephen Warren wrote:
> 
>>>>>> Do you need any clocks properties, IP block reset signals, power
>>>>>> domains?
> 
>>>>>      Currently not.
> 
>>>> What does "currently" mean? Does that mean that the Linux driver simply
>>>> doesn't touch those entities at present?
> 
>>>     There's Ether clock but the driver doesn't manipulate it directly,
>>> assumingly it does this thru the runtime PM interface. As for the
>>> others, I simply don't know.
> 
>> If there's a clock, it should be represented in DT, even if the kernel
>> somehow gets access to the clock through some means other than parsing
>> DT.
> 
>    Frankly speaking, I don't see the point.

To be honest, that doesn't exactly make me care about reviewing the
binding then.

>>>> If so, that's not enough to say
>>>> that those entities should not be described in the DT binding. We
>>>> should
>>>> strive to make the binding completely describe all aspects of the HW,
>>>> irrespective of whether a particular driver happens to use that
>>>> information at present.
> 
>>> There's no DT representation for the clocks in SH-Mobile subarch yet.
>>> The same applies to the other entities you mentioned.
> 
>> You can still write the binding to say that the appropriate clock
>> property must be present; the overall format of this property won't be
>> affected by the representation chosen for the SH-Mobile clocks.
> 
>    Where can I find an example of such property, independent of the
> parent clock node? All I could find with quick search refers with a
> phandle to a clock node (we don't have now).

All clock property definitions are independent of the source of the clock.

Now the actual value you put in the DT file is dependent on which source
it's describing.

>> It seems like it'd be best to get the basic resources (like clocks)
>> represented in DT before trying to build blocks that use them.
> 
>    We don't use them directly. And we need the Ether device tree support *now*, while clock-related work will probably take months (there are plans to switch Sh-Mobile to CCF in like 6 months). 

What/who is "we". If it's just a matter of the driver-vs-runtime-pm
code, then it's not relevant.

I don't think needing something now is a good excuse.

WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren@wwwdotorg.org>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: rob.herring@calxeda.com, pawel.moll@arm.com,
	mark.rutland@arm.com, ian.campbell@citrix.com,
	grant.likely@linaro.org, devicetree@vger.kernel.org,
	linux-sh@vger.kernel.org, nobuhiro.iwamatsu.yj@renesas.com,
	rob@landley.net, linux-doc@vger.kernel.org
Subject: Re: [PATCH v2 2/2] sh_eth: add device tree support
Date: Tue, 10 Sep 2013 16:21:25 -0600	[thread overview]
Message-ID: <522F9B65.1020606@wwwdotorg.org> (raw)
In-Reply-To: <522F93A5.6010709@cogentembedded.com>

On 09/10/2013 03:48 PM, Sergei Shtylyov wrote:
> Hello.
> 
> On 09/11/2013 12:07 AM, Stephen Warren wrote:
> 
>>>>>> Do you need any clocks properties, IP block reset signals, power
>>>>>> domains?
> 
>>>>>      Currently not.
> 
>>>> What does "currently" mean? Does that mean that the Linux driver simply
>>>> doesn't touch those entities at present?
> 
>>>     There's Ether clock but the driver doesn't manipulate it directly,
>>> assumingly it does this thru the runtime PM interface. As for the
>>> others, I simply don't know.
> 
>> If there's a clock, it should be represented in DT, even if the kernel
>> somehow gets access to the clock through some means other than parsing
>> DT.
> 
>    Frankly speaking, I don't see the point.

To be honest, that doesn't exactly make me care about reviewing the
binding then.

>>>> If so, that's not enough to say
>>>> that those entities should not be described in the DT binding. We
>>>> should
>>>> strive to make the binding completely describe all aspects of the HW,
>>>> irrespective of whether a particular driver happens to use that
>>>> information at present.
> 
>>> There's no DT representation for the clocks in SH-Mobile subarch yet.
>>> The same applies to the other entities you mentioned.
> 
>> You can still write the binding to say that the appropriate clock
>> property must be present; the overall format of this property won't be
>> affected by the representation chosen for the SH-Mobile clocks.
> 
>    Where can I find an example of such property, independent of the
> parent clock node? All I could find with quick search refers with a
> phandle to a clock node (we don't have now).

All clock property definitions are independent of the source of the clock.

Now the actual value you put in the DT file is dependent on which source
it's describing.

>> It seems like it'd be best to get the basic resources (like clocks)
>> represented in DT before trying to build blocks that use them.
> 
>    We don't use them directly. And we need the Ether device tree support *now*, while clock-related work will probably take months (there are plans to switch Sh-Mobile to CCF in like 6 months). 

What/who is "we". If it's just a matter of the driver-vs-runtime-pm
code, then it's not relevant.

I don't think needing something now is a good excuse.

  reply	other threads:[~2013-09-10 22:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06 23:43 [PATCH v2 2/2] sh_eth: add device tree support Sergei Shtylyov
2013-09-06 23:43 ` Sergei Shtylyov
2013-09-09 21:02 ` Stephen Warren
2013-09-09 21:02   ` Stephen Warren
2013-09-10 14:39   ` Sergei Shtylyov
2013-09-10 14:39     ` Sergei Shtylyov
2013-09-10 15:15     ` Stephen Warren
2013-09-10 15:15       ` Stephen Warren
2013-09-10 18:01       ` Sergei Shtylyov
2013-09-10 18:01         ` Sergei Shtylyov
2013-09-10 20:07         ` Stephen Warren
2013-09-10 20:07           ` Stephen Warren
2013-09-10 21:48           ` Sergei Shtylyov
2013-09-10 21:48             ` Sergei Shtylyov
2013-09-10 22:21             ` Stephen Warren [this message]
2013-09-10 22:21               ` Stephen Warren
2013-10-16 22:41               ` Sergei Shtylyov
2013-10-16 22:41                 ` Sergei Shtylyov
2013-10-17 16:41                 ` Mark Rutland
2013-10-17 16:41                   ` Mark Rutland

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=522F9B65.1020606@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=nobuhiro.iwamatsu.yj@renesas.com \
    --cc=pawel.moll@arm.com \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=sergei.shtylyov@cogentembedded.com \
    /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.