From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Sascha Hauer" <s.hauer@pengutronix.de>
Cc: linuxppc-dev Development <linuxppc-dev@ozlabs.org>,
Sven Luther <sven@genesi-usa.com>
Subject: Re: Discussion on SOC device tree bindings
Date: Mon, 15 Jan 2007 06:48:59 -0700 [thread overview]
Message-ID: <528646bc0701150548q1f9eac36u248326276465090d@mail.gmail.com> (raw)
In-Reply-To: <20070115110509.GA25974@localhost.localdomain>
On 1/15/07, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> Hi,
>
> On Sun, Jan 14, 2007 at 03:29:24PM -0700, Grant Likely wrote:
> > >
> > > So, the following changes are proposed:
> > > 1. "mpc52xx-*" items will be dropped from the compatible property
> > > because they are premature. Unless the 5200B device is incompatible
> > > with the 5200, then the 5200B will specify "mpc5200b-*\0mpc5200-*".
> > > (strong recommendation, but not required; if a 5200b board just has
> > > "mpc5200-*", in most cases it won't cause breakage).
>
> How about always specifying the exact name and only the exact name
> in the device tree, i.e. mpc5200-fec on mpc5200, mpc5200b-fec on
> mpc5200b and so on. This way the driver can decide whether or not it's
> compatible to a device and we can be sure not to overlook any
> incompatibilities. We could even decide in later kernel versions that
> two devices are too incompatible and split the driver into two.
That's the point I started from, but if you go down that path it still
doesn't provide the right amount of information. What if one silicon
version of the 5200b has a problem? For that kind of stuff we need to
know the exact version of the chip.
The compatible property has a different purpose. It's purpose is to
describe the interfaces; not the implementations of the interface. It
is a list from most compatible to least compatible. So, assuming no
silicon bugs, a chip down the road with the same device on it gets
it's devices supported 'for free' on systems that already support the
5200. No code changes. It also means the kernel doesn't have to
maintain the compatibility tables.
If there are too drivers (ie. mpc5200-psc-ac97 and mpc5200b-psc-ac97),
then the most compatible driver should match first.
If there *are* as-yet-unknown silicon bugs; it's a different matter,
but the addition of the model/revision properties on the soc node
gives the OS enough info to enable/disable workarounds.
>
> > > 2. known quirks/extra features will be reported with additional
> > > properties to the device. ie. gpt0 will add a 'has-wdt' empty
> > > property
> > > 3. an /soc5200/model property will be added for last resort
> > > determination of chip version (The soc5200 node is called 'builtin' on
> > > the efika)
> > > 4. most of the 5200 drivers will be changed to bind on 5200-* instead
> > > of 52xx-*. Drivers will not bind on 5200b-* unless truly incompatible
> > > with the 5200.
>
> There may be incompatibilities between 5200 and 5200b which we simply did
> not discover yet.
of course, but the driver should have enough info to make good
decisions about when to enable/disable them.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
next prev parent reply other threads:[~2007-01-15 13:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <528646bc0701131555n3249b503i3b6e8c37db41dd52@mail.gmail.com>
2007-01-14 22:29 ` Discussion on SOC device tree bindings Grant Likely
2007-01-15 11:05 ` Sascha Hauer
2007-01-15 13:48 ` Grant Likely [this message]
2007-01-15 15:42 ` Segher Boessenkool
2007-01-16 8:25 ` Sascha Hauer
[not found] ` <45AA098C.70101@246tNt.com>
[not found] ` <6189b01379f62aa4516484872f4ef86f@kernel.crashing.org>
[not found] ` <1168810790.4803.11.camel@localhost.localdomain>
[not found] ` <ccc8fbc935d8f8d3e30870d43959f6c7@kernel.crashing.org>
[not found] ` <1168817449.4803.28.camel@localhost.localdomain>
[not found] ` <ef64a4198a02929a00c28abb5f0934b5@kernel.crashing.org>
[not found] ` <1168818533.4803.37.camel@localhost.localdomain>
[not found] ` <a1af25147ea7308c394d243511b96f69@kernel.crashing.org>
[not found] ` <45ABA20E.30008@genesi-usa.com>
2007-01-15 17:06 ` Grant Likely
2007-01-15 18:31 ` Segher Boessenkool
2007-01-16 6:25 ` Benjamin Herrenschmidt
2007-01-16 9:07 ` Segher Boessenkool
[not found] ` <1168928567.4803.55.camel@localhost.localdomain>
2007-01-17 8:40 ` Grant Likely
2007-01-19 10:58 ` Segher Boessenkool
2007-01-19 16:11 ` Yoder Stuart-B08248
2007-01-19 16:38 ` Grant Likely
2007-01-19 16:50 ` Segher Boessenkool
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=528646bc0701150548q1f9eac36u248326276465090d@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.org \
--cc=s.hauer@pengutronix.de \
--cc=sven@genesi-usa.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;
as well as URLs for NNTP newsgroup(s).