[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <BANLkTimXZvW16uMRGMeyH203e6MHxdNbSA@mail.gmail.com>
Date: Thu, 23 Jun 2011 22:05:00 -0600
From: Grant Likely <grant.likely@...retlab.ca>
To: Shawn Guo <shawn.guo@...escale.com>
Cc: patches@...aro.org, netdev@...r.kernel.org,
devicetree-discuss@...ts.ozlabs.org,
Jason Liu <jason.hui@...aro.org>, linux-kernel@...r.kernel.org,
Jeremy Kerr <jeremy.kerr@...onical.com>,
Sascha Hauer <s.hauer@...gutronix.de>,
linux-arm-kernel@...ts.infradead.org,
David Gibson <david@...son.dropbear.id.au>
Subject: Re: [PATCH 1/3] serial/imx: add device tree support
On Thu, Jun 23, 2011 at 9:49 PM, Shawn Guo <shawn.guo@...escale.com> wrote:
> On Thu, Jun 23, 2011 at 05:11:54PM -0600, Grant Likely wrote:
>> > + int devid = get_alias_name_id(pp->name, devname);
>> > +
>> > + /* We do not want to proceed this sentinel one */
>> > + if (!strcmp(pp->name, "name") && !strcmp(pp->value, "aliases"))
>> > + break;
>>
>> Skipping the 'name' property is good, but I don't think you need to
>> check the value. You should also skip the "phandle" property.
>>
> Ok. I have not seen "phandle" property in aliases node though. Can
> you give me an example, so that I can make one up for testing?
It's a standard property that shows up automatically if any node
happens to have a phandle reference to another node. The name will be
either "phandle" or "linux,phandle". Search for "linux,phandle" in
drivers/of/fdt.c to see how that property is processed.
g.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists