From: Dan Malek <dan@embeddededge.com>
To: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] 8xx: add cpm_get_cpmp()
Date: Sun, 7 Aug 2005 13:25:34 -0400 [thread overview]
Message-ID: <2fcd8a329246b2f2c303e515dd0cb7bf@embeddededge.com> (raw)
In-Reply-To: <20050807154432.GE5210@cathedrallabs.org>
On Aug 7, 2005, at 11:44 AM, Aristeu Sergio Rozanski Filho wrote:
> what about don't cache it and call ioremap() from driver? (I guess
> ioremap() already check if an area is already mapped, no?)
Either way. I'm actually leaning toward these "pointer helper"
functions. :-) Something like get_cpmp(), or get_immr(), that will
hide the details of the mapping, so you don't have to include
and know which #defines to use as part of an ioremap() call.
It seems to be more clear to me, and I'm thinking about making
the same changes to the CPM2 drivers. It also allows a
performance versus compact code trade off, declaring these
as inline functions or as real functions.
Thanks.
-- Dan
prev parent reply other threads:[~2005-08-07 17:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-06 18:03 [PATCH] 8xx: add cpm_get_cpmp() Aristeu Sergio Rozanski Filho
2005-08-06 23:27 ` Marcelo Tosatti
2005-08-06 23:42 ` Aristeu Sergio Rozanski Filho
2005-08-07 0:33 ` Marcelo Tosatti
2005-08-07 3:36 ` Dan Malek
2005-08-07 2:40 ` Dan Malek
2005-08-07 4:31 ` Marcelo Tosatti
2005-08-07 15:39 ` Dan Malek
2005-08-07 15:44 ` Aristeu Sergio Rozanski Filho
2005-08-07 15:57 ` Marcelo Tosatti
2005-08-07 19:18 ` Eugene Surovegin
2005-08-07 17:25 ` Dan Malek [this message]
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=2fcd8a329246b2f2c303e515dd0cb7bf@embeddededge.com \
--to=dan@embeddededge.com \
--cc=aris@cathedrallabs.org \
--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).