All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Carlos Aguiar <carlos.aguiar@indt.org.br>
Cc: omap-linux <linux-omap-open-source@linux.omap.com>
Subject: Re: [PATCH 04/14] MMC: OMAP: Power functions modified to MMC multislot support
Date: Tue, 9 Oct 2007 08:29:16 -0700	[thread overview]
Message-ID: <20071009152914.GC7784@atomide.com> (raw)
In-Reply-To: <46F28BB7.7050203@indt.org.br>

Hi,

* Carlos Aguiar <carlos.aguiar@indt.org.br> [070920 08:05]:
> From: Juha Yrjola <juha.yrjola@solidboot.com>
> 
> Modifications at power functions to MMC multislot support. This patch
> also move board-specific code out of MMC OMAP driver.
> 
> Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
> Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
> ---
>  drivers/mmc/host/omap.c |   88 ++++++++++++++++++-----------------------------
>  1 files changed, 34 insertions(+), 54 deletions(-)
> 
> @@ -1090,23 +1063,29 @@ static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>  	int i, dsor;
>  
>  	dsor = mmc_omap_calc_divisor(mmc, ios);
> -	host->bus_mode = ios->bus_mode;
> -	host->hw_bus_mode = host->bus_mode;
> +
> +	mmc_omap_select_slot(slot, 0);
> +
> +	if (ios->vdd != slot->vdd)
> +		slot->vdd = ios->vdd;
>  
>  	switch (ios->power_mode) {
>  	case MMC_POWER_OFF:
> -		mmc_omap_power(host, 0);
> +		mmc_omap_set_power(slot, 0, ios->vdd);
>  		break;
>  	case MMC_POWER_UP:
> -		/* Cannot touch dsor yet, just power up MMC */
> -		mmc_omap_power(host, 1);
> -		return;
>  	case MMC_POWER_ON:
> +		mmc_omap_set_power(slot, 1, ios->vdd);
>  		dsor |= 1 << 11;
>  		break;
>  	}
>  

This part breaks the MMC_POWER_UP vs MMC_POWER_ON again.

This is third time I comment on the same issue I believe. Please
do not revert changes made in linux-omap with your patches.

You must power up MMC with MMC_POWER_UP, and then just set the
divisor in MMC_POWER_ON.

Regards,

Tony

  reply	other threads:[~2007-10-09 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-20 15:03 [PATCH 04/14] MMC: OMAP: Power functions modified to MMC multislot support Carlos Aguiar
2007-10-09 15:29 ` Tony Lindgren [this message]
2007-10-09 17:47   ` Carlos Aguiar
2007-10-16 16:13     ` Carlos Aguiar
2007-10-16 16:14     ` Carlos Aguiar
2007-10-21 23:49       ` Tony Lindgren
2007-10-23 15:24         ` Carlos Aguiar
2007-11-04 22:54           ` Carlos Aguiar

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=20071009152914.GC7784@atomide.com \
    --to=tony@atomide.com \
    --cc=carlos.aguiar@indt.org.br \
    --cc=linux-omap-open-source@linux.omap.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 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.