From: Alan Cox <alan@linux.intel.com>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: "Kyungmin Park" <kmpark@infradead.org>,
linux-mmc@vger.kernel.org, pierre-list@ossman.eu,
gdavis@mvista.com, cbouatmailru@gmail.com,
m.szyprowski@samsung.com, akpm@linux-foundation.org,
정재훈 <jh80.chung@samsung.com>
Subject: Re: cleaning up sdhci? (was Re: [RFC] thoughts about recent Samsung related patches)
Date: Tue, 14 Sep 2010 11:21:29 +0100 [thread overview]
Message-ID: <20100914112129.0c7b93eb@linux.intel.com> (raw)
In-Reply-To: <20100914102858.GB2629@pengutronix.de>
> That is, if some implementations of a controller do not adhere to
> that standard and change some bits in the register layout, well, then
> they have to live with the quirks and their performance issues IMHO.
The ATA layer uses I/O accessors although it abstracts them a bit (so
its got 'read status' type abstractions. For performance reasons one or
two places the abstraction is higher level (eg block data transfers)
but with those in place it doesn't seem to be measurable.
> Seeing Alan's patchset, it seems to be a good time to do some
> sdhci-cleanup. My impression is that we could get generalize a few
> quirks by using io-accessors and overriding capabilties-flags. I am
I avoided doing any of it by making I/O access functions fake results
because that seemed to be a recipe for hard to debug future problems.
When dealing with different register layouts or specific bugs it seems
sensible
(and 8250 serial does this succesfully with some devices faking certain
register bits their hardware gets wrong)
> open for other opinions, though. All in all, it would be great if we
> all could combine our efforts and get some kind of master-plan :)
> Will take a look at Alan's patches now...
If there is going to be a grand clean up my preference long term would
be that there is no
if (host->ops->foo)
host->ops->foo(...)
else {
do foo
}
but that host->ops gets all the NULL entries filled in and the core
code simply calls host->ops->xxx in each case.
Alan
prev parent reply other threads:[~2010-09-14 11:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 11:00 [RFC] thoughts about recent Samsung related patches Wolfram Sang
2010-09-06 11:16 ` Kyungmin Park
2010-09-06 12:05 ` Wolfram Sang
2010-09-13 12:31 ` Wolfram Sang
2010-09-14 0:05 ` Kyungmin Park
2010-09-14 10:28 ` cleaning up sdhci? (was Re: [RFC] thoughts about recent Samsung related patches) Wolfram Sang
2010-09-14 10:21 ` Alan Cox [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=20100914112129.0c7b93eb@linux.intel.com \
--to=alan@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=cbouatmailru@gmail.com \
--cc=gdavis@mvista.com \
--cc=jh80.chung@samsung.com \
--cc=kmpark@infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=pierre-list@ossman.eu \
--cc=w.sang@pengutronix.de \
/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