Skip to contentSkip to conversation

omap4 regression: set correct boot source

PATCH In review Vicente Bergas 3 participants 3 messages Apr 16, 2013 – Apr 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap4 regression: set correct boot source

---
 arch/arm/mach-omap/omap4_generic.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_generic.c +3 -3
index b33ed60..3d6ec25 100644
@@ -507,11 +507,11 @@ static int omap4_bootsource(void)
 	u32 bootsrc = readl(OMAP4_TRACING_VECTOR3);
 
 	if (bootsrc & (1 << 5))
-		return BOOTSOURCE_MMC;
+		src = BOOTSOURCE_MMC;
 	if (bootsrc & (1 << 3))
-		return BOOTSOURCE_NAND;
+		src = BOOTSOURCE_NAND;
 	if (bootsrc & (1<<20))
-		return BOOTSOURCE_USB;
+		src = BOOTSOURCE_USB;
 	bootsource_set(src);
 	bootsource_set_instance(0);
 
Signature · 7 lines
1.8.2.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 13 lines · Vicente Bergas
---
 arch/arm/mach-omap/omap4_generic.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_generic.c +0 -0
index b33ed60..3d6ec25 100644
@@ -507,11 +507,11 @@ static int omap4_bootsource(void)
 	u32 bootsrc = readl(OMAP4_TRACING_VECTOR3);
 
 	if (bootsrc & (1 << 5))

arch/arm/mach-omap/omap4_generic.c static int omap4_bootsource(void) · line 516

Quoted 10 lines
arch/arm/mach-omap/omap4_generic.c +3 -3
-		return BOOTSOURCE_MMC;
+		src = BOOTSOURCE_MMC;
 	if (bootsrc & (1 << 3))
-		return BOOTSOURCE_NAND;
+		src = BOOTSOURCE_NAND;
 	if (bootsrc & (1<<20))
-		return BOOTSOURCE_USB;
+		src = BOOTSOURCE_USB;
 	bootsource_set(src);
 	bootsource_set_instance(0);

Sorry for messing this up. Sascha, this patch is correct.

Regards,
Jan

Signature · 10 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
#2 lore raw
In reply to Vicente Bergas
Quoted 2 lines · Vicente Bergas

Folded into the original patch breaking it.

Sascha

Quoted 32 lines
---
 arch/arm/mach-omap/omap4_generic.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_generic.c +3 -3
index b33ed60..3d6ec25 100644
@@ -507,11 +507,11 @@ static int omap4_bootsource(void)
 	u32 bootsrc = readl(OMAP4_TRACING_VECTOR3);
 
 	if (bootsrc & (1 << 5))
-		return BOOTSOURCE_MMC;
+		src = BOOTSOURCE_MMC;
 	if (bootsrc & (1 << 3))
-		return BOOTSOURCE_NAND;
+		src = BOOTSOURCE_NAND;
 	if (bootsrc & (1<<20))
-		return BOOTSOURCE_USB;
+		src = BOOTSOURCE_USB;
 	bootsource_set(src);
 	bootsource_set_instance(0);
 
Signature · 7 lines
1.8.2.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
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