From: Dan Malek <dan@embeddedalley.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>,
Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH] powerpc: Add FSL CPM2 device tree node documentation
Date: Thu, 30 Mar 2006 10:14:18 -0500 [thread overview]
Message-ID: <9ede6f664a3419c5dda34c5e1911a7e6@embeddedalley.com> (raw)
In-Reply-To: <EE317557-1474-41EE-B746-22B6C275905F@kernel.crashing.org>
On Mar 30, 2006, at 9:37 AM, Kumar Gala wrote:
> * What a give channel (SCC, FCC, UCC, SMC?) is used for serial,
> ethernet, ATM, etc.
You need to view this from the other direction. As I've always
said, we don't have an "SCC driver", we have a uart driver for
SCCs. So, you configure from that perspective. The uart driver
is configured to use certain SCCs.
> * How a channel is wired? [pin muxing] (I really hate having drivers
> have board specific ifdefs for this)
I've got a solution for IO pin multiplexing that I have to get pushed
in using the "feature_call" method like a pmac. The other thing
to realize here is there is often hardware beyond just "pin muxing"
that is unique to a board and requires configuration. Statically
describing what pins set/clear is a small, and already understood
part, of more complex set up that needs to be done with code
unique to a board.
> * which (if any) BRG a channel is using?
These are already a dynamically allocated resource. Drivers
don't care which one is assigned, you should be allocating
one and using the handle provided to the support functions.
> * ...? [I feel like I'm missing some but haven't worked on a CPM
> driver in a while :)]
I can't think of any, and I use the CPM all of the time. :-)
> The other question is what changes between CPUs?
Almost nothing, except the PRAM offset you mention below
and I've mentioned in past messages as memory bank differences.
> * Number/Mix of channels
> * some PRAM offset (8272 FCC comes to mind)
> * channel differences for same channel type? (what's an example of
> this?)
> * ...?
Don't be creating problems to solve because we seem to have
a solution for _something_. Yes, this would be a cute piece of code
to write and interesting driver updates, but in the end all we have
is change for the sake of change, without adding any new features.
The thing to remember is the few public Linux drivers we have
take little advantage of the CPM features. We just configure a few
fixed standard modes (like serial and Ethernet). The CPM is far
more powerful and flexible than this, so it seems silly to create some
complex method of describing our trivial fixed modes that has no
hope of actually being useful for "real" CPM usage. Then, when
someone does write a more complex driver, we have all of this
"framework" that just gets in the way instead of being useful.
Thanks.
-- Dan
next prev parent reply other threads:[~2006-03-30 15:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 16:14 [PATCH] powerpc: Add FSL CPM2 device tree node documentation Vitaly Bordug
2006-03-28 16:37 ` Kumar Gala
2006-03-28 16:42 ` Vitaly Bordug
2006-03-28 16:55 ` Paul Nasrat
2006-04-12 23:19 ` Andy Fleming
2006-04-13 5:14 ` Paul Nasrat
2006-04-13 15:15 ` Jon Loeliger
2006-04-21 11:17 ` Paul Mackerras
2006-03-30 5:05 ` Dan Malek
2006-03-30 6:10 ` Paul Mackerras
2006-03-30 10:37 ` Vitaly Bordug
2006-03-30 10:26 ` Vitaly Bordug
2006-03-30 13:09 ` Dan Malek
2006-03-30 14:37 ` Kumar Gala
2006-03-30 15:14 ` Dan Malek [this message]
2006-03-30 15:02 ` Vitaly Bordug
2006-03-30 15:43 ` Kumar Gala
2006-03-30 15:10 ` Vitaly Bordug
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=9ede6f664a3419c5dda34c5e1911a7e6@embeddedalley.com \
--to=dan@embeddedalley.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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).