Skip to contentSkip to conversation

ram: stm32mp1: Only print RAM config with CONFIG_SPL_DISPLAY_PRINT

PATCH In review Harald Seiler 2 participants 3 messages Sep 27, 2023 – Oct 4, 2023 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ram: stm32mp1: Only print RAM config with CONFIG_SPL_DISPLAY_PRINT

Ensure that the RAM configuration line is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

---
 drivers/ram/stm32mp1/stm32mp1_ram.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ram/stm32mp1/stm32mp1_ram.c +2 -1
index a6c19af9722..2808d07c3ae 100644
@@ -126,7 +126,8 @@ static int stm32mp1_ddr_setup(struct udevice *dev)
 		dev_dbg(dev, "no st,mem-name\n");
 		return -EINVAL;
 	}
-	printf("RAM: %s\n", config.info.name);
+	if (CONFIG_IS_ENABLED(DISPLAY_PRINT))
+		printf("RAM: %s\n", config.info.name);
 
 	for (idx = 0; idx < ARRAY_SIZE(param); idx++) {
 		ret = ofnode_read_u32_array(node, param[idx].name,
Signature · 1 line
2.41.0
Reviewed-by on v1 1/2
#1 lore raw
Quoted 13 lines · Harald Seiler

Ensure that the RAM configuration line is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

---
 drivers/ram/stm32mp1/stm32mp1_ram.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ram/stm32mp1/stm32mp1_ram.c +0 -0
index a6c19af9722..2808d07c3ae 100644

drivers/ram/stm32mp1/stm32mp1_ram.c static int stm32mp1_ddr_setup(struct udevice *dev) · line 133

Quoted 9 lines
drivers/ram/stm32mp1/stm32mp1_ram.c +2 -1
@@ -126,7 +126,8 @@ static int stm32mp1_ddr_setup(struct udevice *dev)
 		dev_dbg(dev, "no st,mem-name\n");
 		return -EINVAL;
 	}
-	printf("RAM: %s\n", config.info.name);
+	if (CONFIG_IS_ENABLED(DISPLAY_PRINT))
+		printf("RAM: %s\n", config.info.name);
 
 	for (idx = 0; idx < ARRAY_SIZE(param); idx++) {
 		ret = ofnode_read_u32_array(node, param[idx].name,

Thanks
Patrice

#2 lore raw
Quoted 23 lines · Patrice CHOTARD
Quoted 20 lines · Harald Seiler

Ensure that the RAM configuration line is only printed when CONFIG_SPL_DISPLAY_PRINT is set.

---
 drivers/ram/stm32mp1/stm32mp1_ram.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ram/stm32mp1/stm32mp1_ram.c +2 -1
index a6c19af9722..2808d07c3ae 100644
@@ -126,7 +126,8 @@ static int stm32mp1_ddr_setup(struct udevice *dev)
 		dev_dbg(dev, "no st,mem-name\n");
 		return -EINVAL;
 	}
-	printf("RAM: %s\n", config.info.name);
+	if (CONFIG_IS_ENABLED(DISPLAY_PRINT))
+		printf("RAM: %s\n", config.info.name);
 
Quoted 7 lines

drivers/ram/stm32mp1/stm32mp1_ram.c static int stm32mp1_ddr_setup(struct udevice *dev) · line 133

Quoted 2 lines
drivers/ram/stm32mp1/stm32mp1_ram.c +0 -0
 	for (idx = 0; idx < ARRAY_SIZE(param); idx++) {
 		ret = ofnode_read_u32_array(node, param[idx].name,

Thanks
Patrice

Apply on stm32/next

Thanks