From: David Gibson <david@gibson.dropbear.id.au>
To: Paul Gortmaker <paul.gortmaker@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>,
Paul Gortmaker <paul.gortmaker@windriver.com>,
linuxppc-dev@ozlabs.org, sfr@canb.auug.org.au
Subject: Re: [PATCH] 86xx: mark functions static, other minor cleanups
Date: Fri, 18 Apr 2008 10:35:02 +1000 [thread overview]
Message-ID: <20080418003502.GC8724@yookeroo.seuss> (raw)
In-Reply-To: <7d1d9c250804141832pa9c9fbbicf4939c9854dc5f5@mail.gmail.com>
On Mon, Apr 14, 2008 at 09:32:44PM -0400, Paul Gortmaker wrote:
> On Fri, Apr 11, 2008 at 3:11 PM, Segher Boessenkool
> <segher@kernel.crashing.org> wrote:
> >
> > > Updated as per above, and with tickerized prefixes for sbc8641.
> > >
> >
> > Care to try once more? It's only "tickerized" if it's in all
> > uppercase.
>
> I'm looking at what exists in arch/powerpc/boot/dts/* and I'm
> not seeing too much uppercase - here is a sample:
>
> ebony.dts: compatible = "ibm,ebony";
> ep405.dts: compatible = "ibm,uic";
> ep8248e.dts: compatible = "fsl,ep8248e";
> bamboo.dts: compatible = "amcc,bamboo";
> cm5200.dts: compatible = "schindler,cm5200";
> ep88xc.dts: compatible = "fsl,ep88xc";
> haleakala.dts: compatible = "amcc,kilauea";
> holly.dts: compatible = "ibm,holly";
> katmai.dts: compatible = "amcc,katmai";
> kilauea.dts: compatible = "amcc,kilauea";
> lite5200b.dts: compatible = "fsl,lite5200b";
> motionpro.dts: compatible = "promess,motionpro";
> mpc8272ads.dts: compatible = "fsl,mpc8272ads";
> mpc866ads.dts: compatible = "fsl,mpc866ads";
>
> > > + compatible = "wind,sbc8641";
>
> To me this looks in keeping with the rest. And I prefer
> with the lower case, actually. (Apparently so do a lot of
> other people...)
The confusion arises due to a difference between historical OF
practice, and current flattened DT practice.
Historically, as Segher says, uppercase names are stock tickers (and
thereby a centrally registered, guaranteed-unique namespace).
Lowercase names are a free-for-all, no central management, put pick a
reasonable name and it will probably be ok.
Use of the formal uppercase names in OF practice isn't particularly
common - there certainly are AAPL, and IBM, names out there but
they're rather outnumbered by the informal lowercase prefixes. Which
is why most of us doing flattened tree work didn't realise the
distinction. So, the flattened tree Linux community independently
came up with the convention of using stock tickers as a way of
uniqueifying the names - but used lowercase names.
So, it's a bit of a mess. Here's my recommended procedure:
* If you can find a single dominant existing practice for the
vendor in question, use that. (Consider both OF and flattened tree
practice). i.e. existing practice trumps all.
* If you can't find any existing practice and need to make a
new prefix, use the stock ticker.
* If you find more than one existing practice (and none is
clearly dominant), take it to the list and we can argue about it.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2008-04-18 0:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 16:59 [PATCH] 86xx: mark functions static, other minor cleanups Paul Gortmaker
2008-04-11 17:16 ` Scott Wood
2008-04-11 18:43 ` Paul Gortmaker
2008-04-11 19:11 ` Segher Boessenkool
2008-04-15 1:32 ` Paul Gortmaker
2008-04-18 0:35 ` David Gibson [this message]
2008-04-11 18:28 ` Segher Boessenkool
2008-04-15 16:11 ` Timur Tabi
2008-04-15 16:28 ` Paul Gortmaker
2008-04-15 16:31 ` Timur Tabi
2008-04-15 22:46 ` Paul Gortmaker
2008-04-15 23:01 ` Kumar Gala
2008-04-15 23:24 ` Kumar Gala
2008-04-16 17:53 ` [PATCH 1/2] " Paul Gortmaker
2008-04-16 17:53 ` [PATCH 2/2] mpc86xx_hpcn: Temporarily accept old dts node identifier Paul Gortmaker
2008-04-17 14:57 ` Kumar Gala
2008-04-17 14:57 ` [PATCH 1/2] 86xx: mark functions static, other minor cleanups Kumar Gala
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=20080418003502.GC8724@yookeroo.seuss \
--to=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=paul.gortmaker@gmail.com \
--cc=paul.gortmaker@windriver.com \
--cc=scottwood@freescale.com \
--cc=sfr@canb.auug.org.au \
/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.