diff mbox series

[u-boot,v2019.04-aspeed-openbmc,2/5] spl: mmc: Switch partition error to debug

Message ID 20200831190130.47060-3-eajames@linux.ibm.com
State New
Headers show
Series AST2600: Boot from eMMC | expand

Commit Message

Eddie James Aug. 31, 2020, 7:01 p.m. UTC
The partition error is normal when loading U-Boot from the eMMC
boot partition. This is because the partition is switched first,
and then the SPL attempts to get partition info, but it will read
it from the wrong spot. The raw load will still work after the
error, so make it a debug statement.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
 common/spl/spl_mmc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 324d91c884..aa0bcea937 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -173,9 +173,7 @@  static int mmc_load_image_raw_partition(struct spl_image_info *spl_image,
 
 	err = part_get_info(mmc_get_blk_desc(mmc), partition, &info);
 	if (err) {
-#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
-		puts("spl: partition error\n");
-#endif
+		debug("spl: partition error\n");
 		return -1;
 	}