public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] SD1.00 wide-bus fix
@ 2010-05-12  9:38 Alagu Sankar
  2010-05-12  9:38 ` [U-Boot] [PATCH 2/4] MMC Card Capacity Bug Fix Alagu Sankar
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Alagu Sankar @ 2010-05-12  9:38 UTC (permalink / raw)
  To: u-boot

Fixed a bug wherein SD version 1.0 cards were not configured for 4-bit mode

Signed-off-by: Alagu Sankar <alagusankar@embwise.com>
---
 drivers/mmc/mmc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index cf4ea16..959d8ad 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -520,6 +520,9 @@ retry_scr:
 			break;
 	}
 
+	if (mmc->scr[0] & SD_DATA_4BIT)
+		mmc->card_caps |= MMC_MODE_4BIT;
+
 	/* Version 1.0 doesn't support switching */
 	if (mmc->version == SD_VERSION_1_0)
 		return 0;
@@ -537,9 +540,6 @@ retry_scr:
 			break;
 	}
 
-	if (mmc->scr[0] & SD_DATA_4BIT)
-		mmc->card_caps |= MMC_MODE_4BIT;
-
 	/* If high-speed isn't supported, we return */
 	if (!(__be32_to_cpu(switch_status[3]) & SD_HIGHSPEED_SUPPORTED))
 		return 0;
-- 
1.6.0.6

^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2010-10-25 18:19 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12  9:38 [U-Boot] [PATCH 1/4] SD1.00 wide-bus fix Alagu Sankar
2010-05-12  9:38 ` [U-Boot] [PATCH 2/4] MMC Card Capacity Bug Fix Alagu Sankar
2010-05-12  9:38   ` [U-Boot] [PATCH 3/4] MMC Multi-block Support Alagu Sankar
2010-05-12  9:38     ` [U-Boot] [PATCH 4/4] Environment in MMC Alagu Sankar
2010-05-13  7:08       ` Lv Terry-R65388
2010-05-14  8:26       ` Sudhakar Rajashekhara
2010-05-14  9:52         ` Wolfgang Denk
2010-05-14 10:02         ` Stefano Babic
2010-05-14 10:54           ` Alagu Sankar
2010-05-14 11:40             ` Stefano Babic
2010-05-14 11:54               ` Alagu Sankar
2010-05-17  7:31               ` Lv Terry-R65388
2010-05-14 17:37     ` [U-Boot] [PATCH 3/4] MMC Multi-block Support Andy Fleming
2010-09-13  7:51       ` Lei Wen
2010-10-04 20:32       ` John Rigby
2010-10-14 21:44         ` Steve Sakoman
2010-10-14 21:53           ` Paulraj, Sandeep
2010-10-23 15:14           ` Ghorai, Sukumar
2010-10-25 17:29             ` Steve Sakoman
2010-10-25 18:19               ` Ghorai, Sukumar
2010-05-14  8:16   ` [U-Boot] [PATCH 2/4] MMC Card Capacity Bug Fix Sudhakar Rajashekhara
2010-05-14 17:32   ` Andy Fleming
2010-05-13 15:13 ` [U-Boot] [PATCH 1/4] SD1.00 wide-bus fix Paulraj, Sandeep
2010-05-14 17:30 ` Andy Fleming
2010-09-09 22:21   ` John Rigby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox