* [PATCH 2/3] MMC: OMAP: Fix omap to use MMC_POWER_ON
@ 2007-04-24 20:37 Carlos Aguiar
2007-04-24 20:49 ` Carlos Aguiar
0 siblings, 1 reply; 2+ messages in thread
From: Carlos Aguiar @ 2007-04-24 20:37 UTC (permalink / raw)
To: Pierre Ossman, linux >> omap-linux, Anderson F. Briglia
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 002-MMC-OMAP-Fix-omap-to-use-MMC_POWER_ON.diff --]
[-- Type: text/plain, Size: 1041 bytes --]
As discussed earlier on LKML:
http://lkml.org/lkml/2006/5/4/44
Signed-off-by: Tony Lindgren <tony@atomide.com>
Index: linux-2.6.20/drivers/mmc/omap.c
===================================================================
--- linux-2.6.20.orig/drivers/mmc/omap.c 2007-04-24 15:22:12.000000000 -0400
+++ linux-2.6.20/drivers/mmc/omap.c 2007-04-24 15:22:15.000000000 -0400
@@ -970,8 +970,10 @@ static void mmc_omap_set_ios(struct mmc_
mmc_omap_power(host, 0);
break;
case MMC_POWER_UP:
- case MMC_POWER_ON:
+ /* Cannot touch dsor yet, just power up MMC */
mmc_omap_power(host, 1);
+ return;
+ case MMC_POWER_ON:
dsor |= 1 << 11;
break;
}
@@ -987,7 +989,7 @@ static void mmc_omap_set_ios(struct mmc_
* Writing to the CON register twice seems to do the trick. */
for (i = 0; i < 2; i++)
OMAP_MMC_WRITE(host, CON, dsor);
- if (ios->power_mode == MMC_POWER_UP) {
+ if (ios->power_mode == MMC_POWER_ON) {
/* Send clock cycles, poll completion */
OMAP_MMC_WRITE(host, IE, 0);
OMAP_MMC_WRITE(host, STAT, 0xffff);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 2/3] MMC: OMAP: Fix omap to use MMC_POWER_ON
2007-04-24 20:37 [PATCH 2/3] MMC: OMAP: Fix omap to use MMC_POWER_ON Carlos Aguiar
@ 2007-04-24 20:49 ` Carlos Aguiar
0 siblings, 0 replies; 2+ messages in thread
From: Carlos Aguiar @ 2007-04-24 20:49 UTC (permalink / raw)
To: linux >> omap-linux
Hi folks,
Please, discard this e-mail. I've sent to the wrong mailing list.
Sorry for this.
Thanks,
Carlos.
ext Carlos Aguiar wrote:
> ------------------------------------------------------------------------
>
> As discussed earlier on LKML:
>
> http://lkml.org/lkml/2006/5/4/44
>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
>
> Index: linux-2.6.20/drivers/mmc/omap.c
> ===================================================================
> --- linux-2.6.20.orig/drivers/mmc/omap.c 2007-04-24 15:22:12.000000000 -0400
> +++ linux-2.6.20/drivers/mmc/omap.c 2007-04-24 15:22:15.000000000 -0400
> @@ -970,8 +970,10 @@ static void mmc_omap_set_ios(struct mmc_
> mmc_omap_power(host, 0);
> break;
> case MMC_POWER_UP:
> - case MMC_POWER_ON:
> + /* Cannot touch dsor yet, just power up MMC */
> mmc_omap_power(host, 1);
> + return;
> + case MMC_POWER_ON:
> dsor |= 1 << 11;
> break;
> }
> @@ -987,7 +989,7 @@ static void mmc_omap_set_ios(struct mmc_
> * Writing to the CON register twice seems to do the trick. */
> for (i = 0; i < 2; i++)
> OMAP_MMC_WRITE(host, CON, dsor);
> - if (ios->power_mode == MMC_POWER_UP) {
> + if (ios->power_mode == MMC_POWER_ON) {
> /* Send clock cycles, poll completion */
> OMAP_MMC_WRITE(host, IE, 0);
> OMAP_MMC_WRITE(host, STAT, 0xffff);
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
--
Carlos Eduardo
Nokia Institute of Technology - INdT
Open Source Mobile Research Center - OSMRC
Phone: +55 92 2126-1079
Mobile: +55 92 8127-1797
E-mail: carlos.aguiar@indt.org.br
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-24 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-24 20:37 [PATCH 2/3] MMC: OMAP: Fix omap to use MMC_POWER_ON Carlos Aguiar
2007-04-24 20:49 ` Carlos Aguiar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox