diff options
author | Anish Trivedi <anish@freescale.com> | 2010-07-01 12:53:21 -0500 |
---|---|---|
committer | Anish Trivedi <anish@freescale.com> | 2010-07-01 12:58:36 -0500 |
commit | c6433f273a5b05472cc412148355bdefb252808e (patch) | |
tree | 562790d677551a777acbcb3faeabcafbf25e654a | |
parent | f35e72585460bc68abac44e2fd820e361f3a7b8c (diff) | |
download | u-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>
-rw-r--r-- | common/cmd_mmc.c | 6 |
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) \ |