From: Chris Ball <cjb@laptop.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-mmc@vger.kernel.org, linux-sh@vger.kernel.org,
Magnus Damm <damm@opensource.se>,
Simon Horman <horms@verge.net.au>,
Ian Molton <ian@mnementh.co.uk>,
Paul Parsons <lost.distance@yahoo.com>
Subject: Re: [PATCH] MMC: tmio: fix a recent regression: restore .set_ios(MMC_POWER_UP) handling
Date: Thu, 21 Apr 2011 11:35:40 -0400 [thread overview]
Message-ID: <m37hanaa7n.fsf@pullcord.laptop.org> (raw)
In-Reply-To: <Pine.LNX.4.64.1104210903250.6893@axis700.grange> (Guennadi Liakhovetski's message of "Thu, 21 Apr 2011 09:09:59 +0200 (CEST)")
Hi,
On Thu, Apr 21 2011, Guennadi Liakhovetski wrote:
> The aggressive clock gating for TMIO MMC patch has broken switching
> interface power on, using MFD or platform callbacks. Restore the
> ios->power_mode == MMC_POWER_UP && ios->clock == 0 case handling.
>
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> ---
>
> This one should go in 2.6.39
>
> drivers/mmc/host/tmio_mmc_pio.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c
> index 6e3271d..f4fac9f 100644
> --- a/drivers/mmc/host/tmio_mmc_pio.c
> +++ b/drivers/mmc/host/tmio_mmc_pio.c
> @@ -772,15 +772,15 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
> tmio_mmc_set_clock(host, ios->clock);
>
> /* Power sequence - OFF -> UP -> ON */
> - if (ios->power_mode == MMC_POWER_OFF || !ios->clock) {
> + if (ios->power_mode == MMC_POWER_UP) {
> + /* power up SD bus */
> + if (host->set_pwr)
> + host->set_pwr(host->pdev, 1);
> + } else if (ios->power_mode == MMC_POWER_OFF || !ios->clock) {
> /* power down SD bus */
> if (ios->power_mode == MMC_POWER_OFF && host->set_pwr)
> host->set_pwr(host->pdev, 0);
> tmio_mmc_clk_stop(host);
> - } else if (ios->power_mode == MMC_POWER_UP) {
> - /* power up SD bus */
> - if (host->set_pwr)
> - host->set_pwr(host->pdev, 1);
> } else {
> /* start bus clock */
> tmio_mmc_clk_start(host);
Thanks, pushed to mmc-next for .39.
Paul Parsons (CC'd) submitted a similar patch to fix the same regression.
Paul, please could you check that Guennadi's patch fixes your problem?
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2011-04-21 15:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 7:09 [PATCH] MMC: tmio: fix a recent regression: restore .set_ios(MMC_POWER_UP) handling Guennadi Liakhovetski
2011-04-21 15:35 ` Chris Ball [this message]
2011-04-22 4:24 ` Paul Parsons
2011-04-22 11:13 ` Paul Parsons
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=m37hanaa7n.fsf@pullcord.laptop.org \
--to=cjb@laptop.org \
--cc=damm@opensource.se \
--cc=g.liakhovetski@gmx.de \
--cc=horms@verge.net.au \
--cc=ian@mnementh.co.uk \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=lost.distance@yahoo.com \
/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