Title: [4057] trunk/drivers/mmc/core/mmc.c: bug[#3535] BF54x sdh only support 1 bit MMC ,so if the inserted card is MMC, disable 4 bit mode
Revision
4057
Author
cliff
Date
2007-12-19 22:20:53 -0600 (Wed, 19 Dec 2007)

Log Message

bug[#3535]BF54x sdh only support 1 bit MMC ,so if the inserted card is MMC,disable 4 bit mode

Diffstat

 mmc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

Modified Paths

Diff

Modified: trunk/drivers/mmc/core/mmc.c (4056 => 4057)


--- trunk/drivers/mmc/core/mmc.c	2007-12-20 02:34:17 UTC (rev 4056)
+++ trunk/drivers/mmc/core/mmc.c	2007-12-20 04:20:53 UTC (rev 4057)
@@ -358,6 +358,9 @@
 	/*
 	 * Activate wide bus (if supported).
 	 */
+/*Currently,Blackfin 54x only support 1 bit MMC,while support 4 bit SD */
+/*So if card type is MMC don't enable 4 bit mode*/
+#if !defined(CONFIG_BF54x)
 	if ((card->csd.mmca_vsn >= CSD_SPEC_VER_4) &&
 		(host->caps & MMC_CAP_4_BIT_DATA)) {
 		err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
@@ -367,7 +370,7 @@
 
 		mmc_set_bus_width(card->host, MMC_BUS_WIDTH_4);
 	}
-
+#endif
 	if (!oldcard)
 		host->card = card;
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to