From: Guillaume GARDET Date: Thu, 18 Feb 2016 17:17:36 +0000 (+0100) Subject: spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=86a0df732853d1a11eb3eaa3cda688d9ef7b34e5;p=u-boot.git spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS Since commit fd61d39970b9901217efc7536d9f3a61b4e1752a: spl: mmc: add break statements in spl_mmc_load_image() RAW and FS boot modes are now exclusive again. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to try MMCSD_MODE_FS then. It has been tested on a beaglebone black to boot on an EXT partition. Signed-off-by: Guillaume GARDET Cc: Tom Rini Cc: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski Cc: Pantelis Antoniou Cc: Simon Glass Cc: Matwey V. Kornilov Acked-by: Nikita Kiryanov --- diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index c3931c6c4d..c27a250251 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -284,7 +284,7 @@ int spl_mmc_load_image(u32 boot_device) if (!err) return err; #endif - break; + /* If RAW mode fails, try FS mode. */ case MMCSD_MODE_FS: debug("spl: mmc boot mode: fs\n");