From: Michael Trimarchi Date: Tue, 9 Jul 2024 06:28:13 +0000 (+0200) Subject: clk: clk-uclass: Print clk name in clk_enable/clk_disable X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=a70d991212c9684e09ed80ece69ce1ff7bfd9f08;p=u-boot.git 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 --- diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 896a0f3d30..16169dac23 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -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); @@ -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);