From: Chris Ball <cjb@laptop.org>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: linux-mmc@vger.kernel.org,
Anton Vorontsov <cbouatmailru@gmail.com>,
Nicolas Pitre <nico@fluxnic.net>
Subject: Re: [PATCH 1/2] mmc: sdhci: Replace SDHCI_QUIRK_FORCE_BLK_SZ_2048 with a platform hook.
Date: Wed, 01 Jun 2011 00:42:02 -0400 [thread overview]
Message-ID: <m3sjru40yt.fsf_-_@pullcord.laptop.org> (raw)
In-Reply-To: <20110601040050.GA24330@pengutronix.de> (Wolfram Sang's message of "Wed, 1 Jun 2011 06:00:50 +0200")
Hi Wolfram, Nico,
On Wed, Jun 01 2011, Wolfram Sang wrote:
> :( I still like the io-accessor-method a lot better.
That's okay -- nothing's final yet, I just wanted to get things moving
again since we're out of quirk space now. I'm still happy to take a
patch from you instead if we decide it's the better way to go.
> I would have created a patch if I had got some feedback on my
> suggestion[1] (and will still do).
>
> [1] http://thread.gmane.org/gmane.linux.kernel.mmc/5742/focus=5768
Sorry for not replying. I'm still mildly in favor of having it handled
as a platform check in the obvious place in sdhci.c, because I can
recall when I didn't know what IO-accessors were, and if I were trying
to track down a bug with with max_blk_size I would have found my way to
sdhci.c but not thought to look at a different part of the host driver
for code that had overloaded sdhci_readl() to mean something non-obvious.
In short, I want the code to be maintainable even by hackers who don't
yet understand how MMC chooses to organize itself, and I feel that your
proposal eventually results in code that seems "magic" and can't easily
be followed by a kernel hacker who happens to be unfamiliar with which
functions we tend to make override-able; someone doing a board bringup,
say. I'm willing to change my mind, though.
You can counter-argue that my approach eventually pollutes sdhci.c with
a bunch of potential calls into platform code, such that people have to
spend time working out whether their platform is or isn't overwriting
any particular function. That's certainly true.
Perhaps it comes down to preferred coding style -- maybe we can get
someone else to act as a tie-breaker? :) CC'ing Nico in case he's
interested.
Thanks!
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2011-06-01 4:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-06 6:13 [PATCH 1/2] mmc: sdhci: Replace SDHCI_QUIRK_FORCE_BLK_SZ_2048 with a pklatform hook Chris Ball
2011-02-07 17:40 ` Wolfram Sang
2011-02-07 17:54 ` Chris Ball
2011-02-07 18:11 ` Wolfram Sang
2011-05-29 2:27 ` Chris Ball
2011-06-01 4:00 ` Wolfram Sang
2011-06-01 4:42 ` Chris Ball [this message]
2011-06-01 15:01 ` [PATCH 1/2] mmc: sdhci: Replace SDHCI_QUIRK_FORCE_BLK_SZ_2048 with a platform hook Nicolas Pitre
2011-06-06 16:53 ` Wolfram Sang
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=m3sjru40yt.fsf_-_@pullcord.laptop.org \
--to=cjb@laptop.org \
--cc=cbouatmailru@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=nico@fluxnic.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.