Skip to contentSkip to conversation

clk: clk-uclass: Print clk name in clk_enable/clk_disable

PATCH In review Michael Trimarchi 2 participants 2 messages Jul 9, 2024 – Aug 2, 2024 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: clk-uclass: Print clk name in clk_enable/clk_disable

Print clk name in clk_enable and clk_disable. Make sense to know what clock get disabled/enabled before a system crash or system hang.

---
 drivers/clk/clk-uclass.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/clk-uclass.c +2 -2
index d768e5ad2e..76f1026164 100644
@@ -630,7 +630,7 @@ int clk_enable(struct clk *clk)
 	struct clk *clkp = NULL;
 	int ret;
 
-	debug("%s(clk=%p)\n", __func__, clk);
+	debug("%s(clk=%p name=%s)\n", __func__, clk, clk->dev->name);
 	if (!clk_valid(clk))
 		return 0;
 	ops = clk_dev_ops(clk->dev);
@@ -691,7 +691,7 @@ int clk_disable(struct clk *clk)
 	struct clk *clkp = NULL;
 	int ret;
 
-	debug("%s(clk=%p)\n", __func__, clk);
+	debug("%s(clk=%p name=%s)\n", __func__, clk, clk->dev->name);
 	if (!clk_valid(clk))
 		return 0;
 	ops = clk_dev_ops(clk->dev);
Signature · 1 line
2.43.0
#1 lore raw
Quoted 5 lines · Michael Trimarchi

Print clk name in clk_enable and clk_disable. Make sense to know what clock get disabled/enabled before a system crash or system hang.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom