[U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available
Tom Rini
trini at konsulko.com
Wed Feb 17 21:27:22 CET 2016
On Wed, Feb 17, 2016 at 09:09:27AM +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, if available.
>
> It has been tested on a beaglebone black to boot on an EXT partition.
>
> Signed-off-by: Guillaume GARDET <guillaume.gardet at free.fr>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Nikita Kiryanov <nikita at compulab.co.il>
> Cc: Igor Grinberg <grinberg at compulab.co.il>
> Cc: Paul Kocialkowski <contact at paulk.fr>
> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Matwey V. Kornilov <matwey.kornilov at gmail.com>
>
> ---
> 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..2eef0f2 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;
> + /* Fall through */
> case MMCSD_MODE_FS:
> debug("spl: mmc boot mode: fs\n");
This also essentially reverts fd61d399. So Nikita, was there a specific
use case that was broken before, or was the code just unclear in
intentions here? Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160217/3438b967/attachment.sig>
More information about the U-Boot
mailing list