From: Stephen Warren <swarren@wwwdotorg.org>
To: Kumar Gala <galak@codeaurora.org>
Cc: Jon Loeliger <jdl@jdl.com>,
David Gibson <david@gibson.dropbear.id.au>,
Olof Johansson <olof@lixom.net>,
frowand.list@gmail.com, Tomasz Figa <tomasz.figa@gmail.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
devicetree@vger.kernel.org,
Linux Kernel list <linux-kernel@vger.kernel.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Rob Herring <rob.herring@calxeda.com>,
Grant Likely <grant.likely@secretlab.ca>,
Stephen Warren <swarren@nvidia.com>,
Rohit Vaswani <rvaswani@codeaurora.org>
Subject: Re: [dtc PATCH V2] Warn on node name unit-address presence/absence mismatch
Date: Thu, 26 Sep 2013 17:12:58 -0600 [thread overview]
Message-ID: <5244BF7A.4000100@wwwdotorg.org> (raw)
In-Reply-To: <3D2FE31C-A6BB-4F70-9B3B-C55012CB56B3@codeaurora.org>
On 09/26/2013 12:21 PM, Kumar Gala wrote:
>
> On Sep 19, 2013, at 12:54 PM, Stephen Warren wrote:
>
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> ePAPR 1.1 section 2.2.1.1 "Node Name Requirements" specifies that any
>> node that has a reg property must include a unit address in its name
>> with value matching the first entry in its reg property. Conversely, if
>> a node does not have a reg property, the node name must not include a
>> unit address.
>>
>> Implement a check for this. The code doesn't validate the format of the
>> unit address; ePAPR implies this may vary from (containing bus) binding
>> to binding, so doing so would be much more complex.
> What about the case of no reg but a ranges?
>
> This pattern shows up on a lot (if not all) the PPC dts:
>
> arch/powerpc/boot/dts/mpc8544ds.dts:
>
> board_soc: soc: soc8544@e0000000 {
> ranges = <0x0 0x0 0xe0000000 0x100000>;
Well, ePAPR seems pretty specific that unit address and reg are related,
but says nothing about ranges in the section on node naming, nor about
node naming in the section about ranges.
I'd claim that the existing PPC trees are nonconforming, and should be
fixed too:-)
next prev parent reply other threads:[~2013-09-26 23:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 17:54 [dtc PATCH V2] Warn on node name unit-address presence/absence mismatch Stephen Warren
2013-09-26 18:21 ` Kumar Gala
2013-09-26 23:12 ` Stephen Warren [this message]
2013-09-27 1:30 ` Benjamin Herrenschmidt
2013-09-27 5:17 ` David Gibson
2013-09-27 15:34 ` Kumar Gala
2013-09-27 15:39 ` Kumar Gala
2013-09-27 16:12 ` Stephen Warren
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=5244BF7A.4000100@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=benh@kernel.crashing.org \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=galak@codeaurora.org \
--cc=grant.likely@secretlab.ca \
--cc=jdl@jdl.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=olof@lixom.net \
--cc=rob.herring@calxeda.com \
--cc=rvaswani@codeaurora.org \
--cc=swarren@nvidia.com \
--cc=tomasz.figa@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox