From: David Gibson <david@gibson.dropbear.id.au>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: Re: Small fixes for the Ebony device tree
Date: Tue, 15 May 2007 15:46:26 +1000	[thread overview]
Message-ID: <20070515054626.GB6998@localhost.localdomain> (raw)
In-Reply-To: <b353b330365fd9ede35fb1cbbbf09aec@kernel.crashing.org>
On Tue, May 15, 2007 at 06:59:49AM +0200, Segher Boessenkool wrote:
> >>> +		SRAM0: sram {
> >>> +			compatible = "ibm,sram440gp";
> >>> +			dcr-reg = <020 8 00a 1>;
> >>> +		};
> >>
> >> Is this thing _only_ addressable over DCRs?  Weird.
> >
> > Well... the control registers are certainly DCR only.  I guess there's
> > the actual SRAM itself, though whether this belongs in this node, or
> > elsewhere isn't immediately clear.  I haven't yet investigated how the
> > SRAM is mapped (it depends on DIP switch settings) so I'm certainly
> > not considering this node complete yet.
> 
> If it is supposed to have a "reg" property, and it doesn't
> yet, it might be a good idea to comment it out in the DTS
> for now, so later kernels can work with the older device
> tree correctly.
Given that I'm not aware of any Ebony firmwares that actually supply a
device tree, so in practice the kernel's tree will always come from an
attached zImage, I don't think this is really a big consideration.
> >>>  		MAL0: mcmal {
> >>> -			device_type = "mcmal-dma";
> >>> +			device_type = "dma-controller";
> >>>  			compatible = "ibm,mcmal-440gp", "ibm,mcmal";
> >>
> >> Remove "device_type", change name to "dma-controller"?
> >
> > Don't really want to remove the device_type, because the MAL driver
> > looks for it at present.
> 
> Fair enough.  But you change the "device_type" in
> this patch, so presumably you change it in the kernel
The kernel driver recognizes both variants, but the one I had
previously is marked deprecated.
> driver as well -- can't you just *fix* the kernel driver,
> instead?
Well.. I guess, but I'd prefer to leave that to BenH, who wrote the
driver.
> > Don't really want to change the name, since
> > that might encourage confusion with the other (more conventional) DMA
> > controller.
> 
> Nah, just look at the other properties in the node and
> you know what is what.  It is quite common to have nodes
> with the same name representing different devices (for
> example, "ethernet" devices -- "dma-controller" would be
> a bit more unusual, sure).
> 
> I have no strong feelings about the name, "mcmal" is
> generic enough a name as far as I'm concerned.
> 
> >>>  			EBC0: ebc {
> >>> -				device_type = "ibm,ebc";
> >>>  				compatible = "ibm,ebc-440gp";
> >>
> >> You forgot "ibm,ebc" here.
> >
> > Hmm.. yeah, I guess.
> 
> Well that's what the kernel code matches on ;-)
Um.. yes.  I wonder how it was working before...
-- 
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:[~2007-05-15  5:46 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-14  4:54 Small fixes for the Ebony device tree David Gibson
2007-05-14 12:22 ` Josh Boyer
2007-05-14 12:59 ` Segher Boessenkool
2007-05-14 15:09   ` Josh Boyer
2007-05-15  1:17   ` David Gibson
2007-05-15  4:59     ` Segher Boessenkool
2007-05-15  5:46       ` David Gibson [this message]
2007-05-16  3:47         ` David Gibson
2007-05-15 18:15 ` Mark A. Greer
  -- strict thread matches above, loose matches on Subject: below --
2007-05-15  2:00 David Gibson
2007-05-15  5:11 ` Segher Boessenkool
2007-05-15  5:47   ` David Gibson
2007-05-15  6:11     ` Stefan Roese
2007-05-15  6:18       ` David Gibson
2007-05-15  6:28         ` Segher Boessenkool
2007-05-15  6:34           ` David Gibson
2007-05-15  6:47             ` Segher Boessenkool
2007-05-15  6:58               ` David Gibson
2007-05-15  7:07                 ` Segher Boessenkool
2007-05-16  3:47                   ` David Gibson
2007-05-15  6:46         ` Stefan Roese
2007-05-15  7:02           ` Segher Boessenkool
2007-05-16  3:48 David Gibson
2007-05-16 13:35 ` 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=20070515054626.GB6998@localhost.localdomain \
    --to=david@gibson.dropbear.id.au \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=segher@kernel.crashing.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).