From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Kiryanov Date: Fri, 19 Feb 2016 15:06:07 +0200 Subject: [U-Boot] [PATCH V2] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS In-Reply-To: <1455815856-5654-1-git-send-email-guillaume.gardet@free.fr> References: <20160218170456.GZ23166@bill-the-cat> <1455815856-5654-1-git-send-email-guillaume.gardet@free.fr> Message-ID: <20160219130607.GA814@skynet> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Feb 18, 2016 at 06:17:36PM +0100, Guillaume GARDET wrote: > 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. Acked-by: Nikita Kiryanov > > 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 > > --- > Changes in V2: > - Replace "/* Fall through */" comment by: > "/* If RAW mode fails, try FS mode. */" > > common/spl/spl_mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c > index c3931c6..c27a250 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"); > > -- > 1.8.4.5 >