aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Trimarchi <michael@amarulasolutions.com>2024-07-09 08:28:13 +0200
committerTom Rini <trini@konsulko.com>2024-08-01 15:35:28 -0600
commita70d991212c9684e09ed80ece69ce1ff7bfd9f08 (patch)
treeeee5e3055c793a2b9d830e5de451e1f8b3f9ff91
parent133f67a3610b5252e85828d86c5e9311f24b7faa (diff)
downloadu-boot-a70d991212c9684e09ed80ece69ce1ff7bfd9f08.zip
u-boot-a70d991212c9684e09ed80ece69ce1ff7bfd9f08.tar.gz
u-boot-a70d991212c9684e09ed80ece69ce1ff7bfd9f08.tar.bz2
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 <michael@amarulasolutions.com>
-rw-r--r--drivers/clk/clk-uclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 896a0f3..16169da 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);