From: Kumar Gala <kumar.gala@freescale.com>
To: "Allen Curtis" <acurtis@onz.com>
Cc: linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: RFC: cpm2_devices.c
Date: Tue, 14 Jun 2005 23:13:03 -0500 [thread overview]
Message-ID: <a38c1fefe53947c6b80ec3d6b4ffd09e@freescale.com> (raw)
In-Reply-To: <42eb0bacadb197b42502ac1828450843@onz.com>
On Jun 14, 2005, at 10:57 PM, Allen Curtis wrote:
>> I've also included our version of this patch for commentary. Did you
>> see a
>> need for the following to actually be devices? (DMA, CPM, SI1, SIC2).
>>
> The good thing about them actually being devices is that you can find
> them and the IO resources had already been remapped. You don't need a
> device driver for them but they are resources used by other device
> drivers.
Not sure I follow. The IO resources are not mapped by anything until
some piece of code does an explicit ioremap(). How do you plan on
finding them? I've got now issue adding them, I just want to
understand how you see us using them. A simple code example might be
helpful.
>> I can provide feedback on all the issues I had with you patch, but
>> would
>> prefer to start with ours (let me know).
>>
> Comments:
> 1. You removed the other PRAM definition from this FCC definition, this
> is good.
>
> 2. I am torn about using numeric IMMR offsets vs. the structure member
> approach. The good thing is that you can create all the devices in a
> single table even if they overlay depending on processor. The question
> is, will the IMMAP structure become obsolete? If not, then you will
> still need the conditional compiles in immap_cpm2.h.
I'm trying to stay away from basing things on the structure. Since the
offsets are truly fixed I see not reason to try to make sure that the
immap structure is always correct for all cases. Hopefully this will
end up removing the need to ifdef the immap structure as we go forward.
> 3. Naming convention, are all these devices just in the MPC82xx family?
> If the CPM is a general FSL co-processor, used across many processor
> families, then I like the CPM2 naming convention.
The key there is the driver name not the enum name. If you look the
driver name field matches 85xx. These files might be better of called
pq2_* instead of mpc82xx_ (8240/1/5 is not handled here) or cpm2_ (85xx
has cpm2).
> 4. What about PCI?
What about it, none of the busses have specific drivers at this point
so they haven't been added.
> 5. This patch does not address the platform specific device structures.
> How do you want to handle these?
I want to do that as a second pass every we close on this. Since the
platform specific device structs are going to be based on what is
needed for the drivers.
- kumar
next prev parent reply other threads:[~2005-06-15 4:13 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-14 18:18 RFC: cpm2_devices.c Allen Curtis
2005-06-15 3:35 ` Kumar Gala
2005-06-15 3:57 ` Allen Curtis
2005-06-15 4:13 ` Kumar Gala [this message]
2005-06-15 4:41 ` Allen Curtis
2005-06-15 14:24 ` Jason McMullan
2005-06-15 15:06 ` Kumar Gala
2005-06-15 17:48 ` Allen Curtis
2005-06-15 18:05 ` Vitaly Bordug
2005-06-15 14:29 ` Kumar Gala
2005-06-15 14:30 ` Kumar Gala
2005-06-16 15:12 ` Dan Malek
2005-06-16 15:33 ` Kumar Gala
2005-06-16 15:42 ` Allen Curtis
2005-06-16 15:53 ` Kumar Gala
2005-06-16 16:39 ` Allen Curtis
2005-06-16 19:33 ` Dan Malek
2005-06-15 7:55 ` Vitaly Bordug
2005-06-15 14:25 ` Kumar Gala
2005-06-15 14:33 ` Jason McMullan
2005-06-15 15:01 ` Kumar Gala
2005-06-15 15:31 ` Vitaly Bordug
2005-06-15 15:41 ` Kumar Gala
2005-06-15 16:07 ` Vitaly Bordug
2005-06-16 6:42 ` Pantelis Antoniou
2005-06-16 9:33 ` Wolfgang Denk
2005-06-16 15:02 ` 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=a38c1fefe53947c6b80ec3d6b4ffd09e@freescale.com \
--to=kumar.gala@freescale.com \
--cc=acurtis@onz.com \
--cc=linuxppc-embedded@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).