Skip to contentSkip to conversation

configs: Fix usage of mmc rescan

PATCH New Andrew Bradford 2 participants 2 messages Oct 1, 2012 – Oct 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: Fix usage of mmc rescan

Fix usage of 'mmc rescan' by many configs. Proper use is 'mmc dev ${mmcdev}; mmc rescan' to set the mmc device and then rescan the device. 'mmc rescan' itself does not take any arguments.

---
 include/configs/am335x_evm.h    |    2 +-
 include/configs/am3517_crane.h  |    2 +-
 include/configs/am3517_evm.h    |    2 +-
 include/configs/cm_t35.h        |    2 +-
 include/configs/devkit8000.h    |    2 +-
 include/configs/igep00x0.h      |    2 +-
 include/configs/mx28evk.h       |    2 +-
 include/configs/mx51evk.h       |    2 +-
 include/configs/mx53ard.h       |    2 +-
 include/configs/mx53evk.h       |    2 +-
 include/configs/mx53loco.h      |    2 +-
 include/configs/mx53smd.h       |    2 +-
 include/configs/mx6qarm2.h      |    2 +-
 include/configs/mx6qsabrelite.h |    2 +-
 include/configs/omap3_beagle.h  |    2 +-
 include/configs/omap3_evm.h     |    2 +-
 include/configs/omap3_logic.h   |    2 +-
 include/configs/omap3_overo.h   |    2 +-
 include/configs/omap3_zoom1.h   |    2 +-
 include/configs/omap4_common.h  |    2 +-
 include/configs/omap5_evm.h     |    2 +-
 include/configs/tricorder.h     |    2 +-
 22 files changed, 22 insertions(+), 22 deletions(-)
include/configs/am335x_evm.h +1 -1
index 263a5ad..6bda1cf 100644
@@ -81,7 +81,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"echo SD/MMC found on device ${mmcdev};" \
 		"if run loadbootenv; then " \
 			"echo Loaded environment from ${bootenv};" \
include/configs/am3517_crane.h +1 -1
index 8ddeff4..20a3df5 100644
@@ -209,7 +209,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/am3517_evm.h +1 -1
index 6980811..ce71d13 100644
@@ -206,7 +206,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/cm_t35.h +1 -1
index 46c556d..6f355c7 100644
@@ -231,7 +231,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/devkit8000.h +1 -1
index 2d2ee5f..7faa868 100644
@@ -232,7 +232,7 @@
 		"dhcp ${loadaddr}; " \
 		"run netargs; " \
 		"bootm ${loadaddr}\0" \
-	"autoboot=if mmc rescan ${mmcdev}; then " \
+	"autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
 			"if run loadbootscript; then " \
 				"run bootscript; " \
 			"else " \
include/configs/igep00x0.h +1 -1
index b1071e8..c81ab76 100644
@@ -180,7 +180,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"echo SD/MMC found on device ${mmcdev};" \
 		"if run loadbootenv; then " \
 			"run importbootenv;" \
include/configs/mx28evk.h +1 -1
index dffb744..385ee71 100644
@@ -312,7 +312,7 @@
 		"dhcp ${uimage}; bootm\0"
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx51evk.h +1 -1
index ba4a4a6..8f960dd 100644
@@ -183,7 +183,7 @@
 		"dhcp ${uimage}; bootm\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx53ard.h +1 -1
index 6ab4cde..6c12f20 100644
@@ -121,7 +121,7 @@
 		"dhcp ${uimage}; bootm\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx53evk.h +1 -1
index b46855f..4405f73 100644
@@ -134,7 +134,7 @@
 		"dhcp ${uimage}; bootm\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx53loco.h +1 -1
index 8cbaf08..2c0159f 100644
@@ -142,7 +142,7 @@
 		"dhcp ${uimage}; bootm\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx53smd.h +1 -1
index f54d328..89dc07f 100644
@@ -120,7 +120,7 @@
 		"dhcp ${uimage}; bootm\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx6qarm2.h +1 -1
index 6c17895..7938612 100644
@@ -108,7 +108,7 @@
 
 #define CONFIG_BOOTCOMMAND \
 	"mmc dev ${mmcdev};" \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/mx6qsabrelite.h +1 -1
index 72d0154..b9e7e7d 100644
@@ -166,7 +166,7 @@
 
 #define CONFIG_BOOTCOMMAND \
        "mmc dev ${mmcdev};" \
-       "if mmc rescan ${mmcdev}; then " \
+       "mmc dev ${mmcdev}; if mmc rescan; then " \
 	       "if run loadbootscript; then " \
 		       "run bootscript; " \
 	       "else " \
include/configs/omap3_beagle.h +1 -1
index f79f996..7a3cc16 100644
@@ -289,7 +289,7 @@
 	"userbutton_nonxm=gpio input 7;\0"
 /* "run userbutton" will return 1 (false) if is pressed and 0 (false) if not */
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run userbutton; then " \
 			"setenv bootenv uEnv.txt;" \
 		"else " \
include/configs/omap3_evm.h +1 -1
index 632a13f..f6e4236 100644
@@ -162,7 +162,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/omap3_logic.h +1 -1
index b975a6c..b2457d0 100644
@@ -202,7 +202,7 @@
 	"mtdids=" MTDIDS_DEFAULT "\0"	\
 	"mtdparts=" MTDPARTS_DEFAULT "\0" \
 	"mmcdev=0\0" \
-	"autoboot=if mmc rescan ${mmcdev}; then " \
+	"autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
 			"if run loadbootscript; then " \
 				"run bootscript; " \
 			"else " \
include/configs/omap3_overo.h +1 -1
index f6d6f75..626cf7a 100644
@@ -188,7 +188,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/omap3_zoom1.h +1 -1
index 891e6f4..e152055 100644
@@ -198,7 +198,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/omap4_common.h +1 -1
index cbc9bdb..a32369a 100644
@@ -165,7 +165,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/omap5_evm.h +1 -1
index 743edfd..623da77 100644
@@ -167,7 +167,7 @@
 		"bootm ${loadaddr}\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan ${mmcdev}; then " \
+	"mmc dev ${mmcdev}; if mmc rescan; then " \
 		"if run loadbootscript; then " \
 			"run bootscript; " \
 		"else " \
include/configs/tricorder.h +1 -1
index 00d02e8..5859a73 100644
@@ -201,7 +201,7 @@
 		"run nandargs; " \
 		"run loaduimage_ubi; " \
 		"bootm ${loadaddr}\0" \
-	"autoboot=if mmc rescan ${mmcdev}; then " \
+	"autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
 			"if run loadbootscript; then " \
 				"run bootscript; " \
 			"else " \
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/1 configs: Fix usage of mmc rescan

Quoted 5 lines · Andrew Bradford

Fix usage of 'mmc rescan' by many configs. Proper use is 'mmc dev ${mmcdev}; mmc rescan' to set the mmc device and then rescan the device. 'mmc rescan' itself does not take any arguments.

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121017/367ff4b7/attachment.pgp>