Skip to contentSkip to conversation

stm32mp1: use debug() for image entry point message

PATCH In review Sean Nyekjaer 3 participants 4 messages Jun 18 – Jul 3

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

PATCH 1/1 stm32mp1: use debug() for image entry point message

The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in common/spl/spl.c.

---
 arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/stm32mp1/cpu.c +1 -1
index 252aef1852e..ea5d8a648df 100644
@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)
 	image_entry_stm32_t image_entry =
 		(image_entry_stm32_t)spl_image->entry_point;
 
-	printf("image entry point: 0x%lx\n", spl_image->entry_point);
+	debug("image entry point: 0x%lx\n", spl_image->entry_point);
 	image_entry(romapi);
 }
 #endif
Signature · 1 line
2.52.0
#1 lore raw
Quoted 14 lines · Sean Nyekjaer

The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in common/spl/spl.c.

---
 arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/stm32mp1/cpu.c +0 -0
index 252aef1852e..ea5d8a648df 100644

arch/arm/mach-stm32mp/stm32mp1/cpu.c void __noreturn jump_to_image(struct spl_image_info *spl_image) · line 367

Quoted 8 lines
arch/arm/mach-stm32mp/stm32mp1/cpu.c +1 -1
@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)
 	image_entry_stm32_t image_entry =
 		(image_entry_stm32_t)spl_image->entry_point;
 
-	printf("image entry point: 0x%lx\n", spl_image->entry_point);
+	debug("image entry point: 0x%lx\n", spl_image->entry_point);
 	image_entry(romapi);
 }
 #endif

+ Marek, as he is the author of the path which brang jump_to_image()

Personally i don't mind of usage either printk() or debug(). Marek, what do you prefer ?

Thanks
Patrice

#2 lore raw
Quoted 28 lines · Patrice CHOTARD
Quoted 14 lines · Sean Nyekjaer

The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in common/spl/spl.c.

---
  arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/stm32mp1/cpu.c +0 -0
index 252aef1852e..ea5d8a648df 100644

arch/arm/mach-stm32mp/stm32mp1/cpu.c void __noreturn jump_to_image(struct spl_image_info *spl_image) · line 367

Quoted 8 lines
arch/arm/mach-stm32mp/stm32mp1/cpu.c +1 -1
@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)
  	image_entry_stm32_t image_entry =
  		(image_entry_stm32_t)spl_image->entry_point;
 
-	printf("image entry point: 0x%lx\n", spl_image->entry_point);
+	debug("image entry point: 0x%lx\n", spl_image->entry_point);
  	image_entry(romapi);
  }
  #endif

+ Marek, as he is the author of the path which brang jump_to_image()

Quoted 2 lines

Personally i don't mind of usage either printk() or debug(). Marek, what do you prefer ?

debug() is fine, thanks !

Reviewed-by
#3 lore raw
Quoted 28 lines · Marek Vasut
Quoted 27 lines · Patrice CHOTARD
Quoted 14 lines · Sean Nyekjaer

The stm32mp1 specific code prints the image entry point unconditionally before jumping to the next-stage image, unlike the generic SPL implementation in common/spl/spl.c.

---
  arch/arm/mach-stm32mp/stm32mp1/cpu.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-stm32mp/stm32mp1/cpu.c +0 -0
index 252aef1852e..ea5d8a648df 100644
@@ -361,7 +361,7 @@ void __noreturn jump_to_image(struct spl_image_info *spl_image)
Quoted 7 lines

      image_entry_stm32_t image_entry = (image_entry_stm32_t)spl_image->entry_point;
  -    printf("image entry point: 0x%lx\n", spl_image->entry_point); +    debug("image entry point: 0x%lx\n", spl_image->entry_point); image_entry(romapi);
  }
  #endif

+ Marek, as he is the author of the path which brang jump_to_image()

Quoted 3 lines
Quoted 2 lines

Personally i don't mind of usage either printk() or debug(). Marek, what do you prefer ?

debug() is fine, thanks !

Thanks
Patrice