Skip to contentSkip to conversation

clk: ti: improve debug messages for clkctrl driver

PATCH New Dario Binacchi 2 participants 2 messages Feb 13, 2021 – Feb 22, 2021

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

PATCH 1/1 clk: ti: improve debug messages for clkctrl driver

The previous version printed the same debug message for both the enable and disable routines without highlighting whether you were enabling or disabling the module. It is now clear whether you are enabling or disabling the module.

---

 drivers/clk/ti/clk-ctrl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/ti/clk-ctrl.c +2 -2
index 3c6195b208..8ac085ee4f 100644
@@ -49,7 +49,7 @@ static int clk_ti_ctrl_disable(struct clk *clk)
 	}
 
 	clk_modules[0] = (u32 *)(offs);
-	dev_dbg(clk->dev, "module address=%p\n", clk_modules[0]);
+	dev_dbg(clk->dev, "disable module @ %p\n", clk_modules[0]);
 	do_disable_clocks(NULL, clk_modules, 1);
 	return 0;
 }
@@ -69,7 +69,7 @@ static int clk_ti_ctrl_enable(struct clk *clk)
 	}
 
 	clk_modules[0] = (u32 *)(offs);
-	dev_dbg(clk->dev, "module address=%p\n", clk_modules[0]);
+	dev_dbg(clk->dev, "enable module @ %p\n", clk_modules[0]);
 	do_enable_clocks(NULL, clk_modules, 1);
 	return 0;
 }
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 clk: ti: improve debug messages for clkctrl driver

Quoted 6 lines · Dario Binacchi

The previous version printed the same debug message for both the enable and disable routines without highlighting whether you were enabling or disabling the module. It is now clear whether you are enabling or disabling the module.

Applied to u-boot-ti/for-rc branch.

Thanks and regards,
Lokesh