clk: clk-uclass: Print clk name in clk_enable/clk_disable
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.
Signed-off-by Michael Trimarchi <[email protected]>
--- drivers/clk/clk-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/clk-uclass.c +2 -2
@@ -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
Quoted 5 lines · Michael Trimarchi
Print clk name in
clk_enableandclk_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