From: Paul Nasrat <pnasrat@redhat.com>
To: Jon Loeliger <jdl@freescale.com>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>,
Jon Loeliger <jdl@jdl.com>
Subject: Re: [PATCH] DTC - validation by device_type
Date: Mon, 24 Apr 2006 15:09:52 -0400 [thread overview]
Message-ID: <1145905793.4082.27.camel@enki.eridu> (raw)
In-Reply-To: <1145547307.5314.118.camel@cashmere.sps.mot.com>
On Thu, 2006-04-20 at 10:35 -0500, Jon Loeliger wrote:
> On Tue, 2006-03-28 at 20:33, Paul Nasrat wrote:
>
> > Signed-off-by: Paul Nasrat <pnasrat@redhat.com>
>
> Paul,
>
> Sorry about the hang-time here. Couple questions.
>
>
> > +static int check_network(struct node *net)
> > +{
> > +
> > + int ok = 1;
> > + struct property *prop;
> > +
> > + CHECK_HAVE(net, "reg");
> > + CHECK_HAVE(net, "local-mac-address");
> > + CHECK_HAVE(net, "mac-address");
> > + CHECK_HAVE(net, "address-bits");
> > +
> > + return ok;
> > +}
>
> This says that all network nodes have to have all four
> of those properties. It's not clear to me that they all
> need to have both local-mac-address and mac-address.
> Specifically, 1275 seems to indicate to me that the
> mac-address property, being introduced by the open
> operation, might be dynamically set at run time, rather
> than passed as a config parameter from, say, U-Boot to
> the kernel. Thus, it might not be necessary here.
1275 defines shall to indicate a mandatory requirement.
p.165 (Annexe A) defines "network" device_type:
A standard package with this "device_type" property shall implement the
following methods:
open, ...
Requirements for open method:
Execute mac-address and create a "mac-address" property with that value.
...
A standard package with this "device_type" property shall implement the
following property if the associated device has a preassigned IEEE 802.3
MAC (network) address:
So for flattened device tree my reading would be something like:
local-mac-address - for the most part this would be compulsory - does
anyone have any cases where a device would not have a preassigned MAC
address? Use of address in the booting-without-of and example should be
replaced by local-mac-address.
For a standard 1275 tree mac-address would be created on open, obviously
this isn't a hard requirement for compatibility so I think we could make
this optional.
Paul
next prev parent reply other threads:[~2006-04-24 19:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 22:49 [PATCH] DTC - validation by device_type Paul Nasrat
2006-03-29 2:03 ` Hollis Blanchard
2006-03-29 2:33 ` Paul Nasrat
2006-04-20 15:35 ` Jon Loeliger
2006-04-24 19:09 ` Paul Nasrat [this message]
2006-04-24 20:55 ` Segher Boessenkool
2006-04-24 21:09 ` Paul Nasrat
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=1145905793.4082.27.camel@enki.eridu \
--to=pnasrat@redhat.com \
--cc=jdl@freescale.com \
--cc=jdl@jdl.com \
--cc=linuxppc-dev@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).