Skip to content

Commit

Permalink
clk: clk-uclass: Print clk name in clk_enable/clk_disable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
panicking authored and trini committed Aug 1, 2024
1 parent 133f67a commit a70d991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/clk-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,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);
Expand Down Expand Up @@ -670,7 +670,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);
Expand Down

0 comments on commit a70d991

Please sign in to comment.