linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: "Grant Likely" <grant.likely@secretlab.ca>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: Re: Question on mpc52xx_common.c
Date: Tue, 8 Apr 2008 23:51:54 +0200	[thread overview]
Message-ID: <29c98f1cd48092a67f9c7e431063e656@kernel.crashing.org> (raw)
In-Reply-To: <fa686aa40804081426u2c2a530ej8ecb6ce9f8fb49a0@mail.gmail.com>

> I disagree and that is not my point.  My point is that perfection is
> neither obtainable or necessary.

It's a nice goal though.

> Many of the recently established
> embedded guidelines are not "perfect" because they are counter to a
> few of the OF recommended practices.  However, they are consistent
> within themselves, they work, and once established they are not going
> to change.

Yeah.  Which is good, even if the bindings themselves aren't
so good.

> Now, if out-of-tree ports continue to break then we've got a problem
> that needs to be fixed.  Once a binding is established (which usually
> takes a few kernel releases)

This is a big problem that is totally avoidable.

*Before* accepting any patches that use a new binding (including
patches to .dts files), that binding itself needs to be discussed.
This will be a lot less work than trying to see what's going on in
some platform/device code and/or some example device tree, and
spotting mistakes there.  It might be a little more work upfront,
and it might seem like it would increase lead time, but as usual,
it's worth it.

Let's flat out refuse any patch series that uses a non-documented
binding.

> it should be very stable and even if the
> definition of ideal is changed, backwards compatibility must be
> maintained.

Which is a good argument why getting it right the first time is
so important (as with all interfaces, nothing specific about
device trees here).

>>  The ARM method of using just a device number is so much easier ...
>
> Only if the assumption is made that very little data needs to be
> shared between the kernel and the firmware.

...which means the kernel has to know *everything* about the hardware
setup and/or what settings the firmware established; i.e., the kernel
has to 100% replace the firmware.  This can be nice for some use cases
(it's the route LinuxBIOS took originally), but it simply doesn't
scale, not in any dimension.


Segher

  reply	other threads:[~2008-04-08 21:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m21w5map5f.fsf@ohwell.denx.de>
     [not found] ` <m2wsne9a4c.fsf@ohwell.denx.de>
2008-04-03 19:00   ` Question on mpc52xx_common.c Grant Likely
2008-04-07 22:31     ` Matt Sealey
2008-04-08  2:14       ` Arnd Bergmann
2008-04-08  2:25         ` Grant Likely
     [not found]           ` <23d2e4300804071926n57746a3cj551ef38bf10486c7@mail.gmail.com>
     [not found]             ` <47FB3CD6.2090706@genesi-usa.com>
2008-04-08 14:52               ` Grant Likely
2008-04-08 19:45                 ` Robert Schwebel
2008-04-08 20:07                   ` Scott Wood
2008-04-08 23:51                     ` David Gibson
2008-04-09  6:18                       ` Wolfgang Denk
2008-04-08 20:12                   ` Timur Tabi
2008-04-08 21:26                   ` Grant Likely
2008-04-08 21:51                     ` Segher Boessenkool [this message]
2008-04-09 16:46                       ` Matt Sealey
2008-04-10  6:39                     ` Robert Schwebel
2008-04-08  7:56         ` Sven Luther

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=29c98f1cd48092a67f9c7e431063e656@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=grant.likely@secretlab.ca \
    --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).