linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Becky Bruce <Becky.Bruce@freescale.com>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: [RFC] Interrupt mapping documentation
Date: Tue, 20 Jun 2006 11:18:06 +1000	[thread overview]
Message-ID: <1150766286.23600.316.camel@localhost.localdomain> (raw)
In-Reply-To: <40AABEB6-3467-4AFB-BC7B-08176EDD61E2@freescale.com>

> If there's precedence for it, it's fine with me.  I was just curious  
> about why it changed.  Personally, I'd rather see it as "pic",  
> because that's more specific, and it's the actual device name, but  
> it's not keeping me up at night.....

I'll revert the example to "pic". I thing Segher is right, let's leave
some freedom there.

> That also works for me.  I'd rather have to specify more stuff in the  
> tree and have it be crystal clear how it's interpreted and used.  So,  
> is this true for just #address-cells, or does it affect #size-cells  
> as well?

Yes. The OF spec says that #size-cells defaults to 1 when absent but I'd
rather make it mandatory. It's not used for interrupt tree resolving
though thus it's not necessary in interrupt-controller nodes.

> Sounds good.  The dtc should probably throw an error (or at least a  
> warning) on this, so the trees get fixed.  I think I'd prefer to see  
> an error - that will keep this problem from propagating any further.

Yup.

> > In the case of interrupt controllers/nexus, #address-cells is not for
> > addressable sub-nodes though but for defining the format of unit
> > interrupt specifiers for interrupt-childs which aren't necessary sub
> > nodes... confusing heh ?
> 
> Um, yeah :)  I think with a little clarification it will be fine,  
> though.

Yeah, it's a bit complicated and I'm not that good at writing very clear
english :) I'll try to do a second pass on that part of the spec. In
fact, the only case where #address-cells is required in an interrupt
controller node (and that node is a leaf node, not also a bus), is when
an interrupt nexus points to it (that is an interrupt-map). I should
make that clear in the spec. If you don't use interrupt maps, you should
not need that #address-cells in the interrupt-controller.

Ben.

  parent reply	other threads:[~2006-06-20  1:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-18  2:45 [RFC] Interrupt mapping documentation Benjamin Herrenschmidt
2006-06-19 19:57 ` Becky Bruce
2006-06-19 22:22   ` Segher Boessenkool
2006-06-19 23:03     ` Jon Loeliger
2006-06-19 23:07       ` Segher Boessenkool
2006-06-19 23:14         ` Jon Loeliger
2006-06-19 23:17     ` Benjamin Herrenschmidt
2006-06-19 23:34       ` Segher Boessenkool
2006-06-20  0:23       ` Becky Bruce
2006-06-20  0:39         ` Segher Boessenkool
2006-06-20  3:06           ` Jon Loeliger
2006-06-20  1:18         ` Benjamin Herrenschmidt [this message]
2006-06-19 23:12   ` Benjamin Herrenschmidt

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=1150766286.23600.316.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=Becky.Bruce@freescale.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).