Skip to contentSkip to conversation

clk: change log_err() to log_info() to make it quiet with clk_register_fixed_rate()

PATCH In review notfound405 2 participants 2 messages Mar 28, 2023 – Nov 1, 2023 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: change log_err() to log_info() to make it quiet with clk_register_fixed_rate()

clk_register_fixed_rate() calls clk_register() with the fourth argument(parent_name) being NULL, making it output error message. Change to log_info() to fix it.

---
The previous email is signed with a wrong name. The patch is not modified.

 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk.c +1 -1
index a5a3461b66..0619937cee 100644
@@ -24,7 +24,7 @@ int clk_register(struct clk *clk, const char *drv_name,
 
 	ret = uclass_get_device_by_name(UCLASS_CLK, parent_name, &parent);
 	if (ret) {
-		log_err("%s: failed to get %s device (parent of %s)\n",
+		log_info("%s: failed to get %s device (parent of %s)\n",
 			__func__, parent_name, name);
 	} else {
 		log_debug("%s: name: %s parent: %s [0x%p]\n", __func__, name,
Signature · 1 line
2.39.2
#1 lore raw
Quoted 17 lines · On 3/28/23 13:03, notfound405 wrote:

clk_register_fixed_rate() calls clk_register() with the fourth argument(parent_name) being NULL, making it output error message. Change to log_info() to fix it.

---
The previous email is signed with a wrong name. The patch is not modified.

  drivers/clk/clk.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk.c +0 -0
index a5a3461b66..0619937cee 100644

drivers/clk/clk.c int clk_register(struct clk *clk, const char *drv_name, · line 30

Quoted 8 lines
drivers/clk/clk.c +1 -1
@@ -24,7 +24,7 @@ int clk_register(struct clk *clk, const char *drv_name,
 
  	ret = uclass_get_device_by_name(UCLASS_CLK, parent_name, &parent);
  	if (ret) {
-		log_err("%s: failed to get %s device (parent of %s)\n",
+		log_info("%s: failed to get %s device (parent of %s)\n",
  			__func__, parent_name, name);
  	} else {
  		log_debug("%s: name: %s parent: %s [0x%p]\n", __func__, name,

cf: https://lore.kernel.org/u-boot/[email protected]/