OMAP4: fix omap4_bootsource regression
Subsystems (2)
PATCH 1/1 OMAP4: fix omap4_bootsource regression
commit d7a913469c34553e96c887f8a9934bacd794e81c breaks boot source detection for pcm049. The tracing vectors shows all tested boot sources, so order is important. By not returning but overwriting src we effectively reversed the order if more than one flag is set.
Signed-off-by Jan Weitzel <[email protected]>
--- arch/arm/mach-omap/omap4_generic.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap/omap4_generic.c +2 -2
@@ -508,9 +508,9 @@ static int omap4_bootsource(void)if (bootsrc & (1 <<5 )) src =BOOTSOURCE_MMC ; -if (bootsrc & (1 <<3 )) +else if (bootsrc & (1 <<3 )) src =BOOTSOURCE_NAND ; -if (bootsrc & (1 <<20 )) +else if (bootsrc & (1 <<20 )) src =BOOTSOURCE_USB ;bootsource_set (src);bootsource_set_instance (0 );
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 6 lines · Jan Weitzel
commit
d7a913469c34553e96c887f8a9934bacd794e81cbreaks boot source detection for pcm049. The tracing vectors shows all tested boot sources, so order is important. By not returning but overwriting src we effectively reversed the order if more than one flag is set.Signed-off-by Jan Weitzel <[email protected]>
Applied to master and stable/v2013.06
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox