summaryrefslogtreecommitdiff
path: root/common/cmd_mmc.c
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2010-07-01 12:53:21 -0500
committerAnish Trivedi <anish@freescale.com>2010-07-01 12:58:36 -0500
commitc6433f273a5b05472cc412148355bdefb252808e (patch)
tree562790d677551a777acbcb3faeabcafbf25e654a /common/cmd_mmc.c
parentf35e72585460bc68abac44e2fd820e361f3a7b8c (diff)
downloadu-boot-imx-c6433f273a5b05472cc412148355bdefb252808e.zip
u-boot-imx-c6433f273a5b05472cc412148355bdefb252808e.tar.gz
u-boot-imx-c6433f273a5b05472cc412148355bdefb252808e.tar.bz2
ENGR00124819 Uboot reading/writing sd card fails
Updated MMC_PARTITION_SWITCH function to not return failure for partition 0 Signed-off-by: Anish trivedi <anish@freescale.com>
Diffstat (limited to 'common/cmd_mmc.c')
-rw-r--r--common/cmd_mmc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 29cae1b..1061dab 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -103,7 +103,11 @@ U_BOOT_CMD(
return 1; \
} \
if (sd_switch_partition(mmc, part) < 0) { \
- return 1; \
+ if (part > 0) { \
+ printf("\nError: Unable to switch SD "\
+ "partition\n");\
+ return 1; \
+ } \
} \
} else { \
if (mmc_switch_partition(mmc, part, enable_boot) \