diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2024-07-09 08:28:13 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-01 15:35:28 -0600 |
commit | a70d991212c9684e09ed80ece69ce1ff7bfd9f08 (patch) | |
tree | eee5e3055c793a2b9d830e5de451e1f8b3f9ff91 | |
parent | 133f67a3610b5252e85828d86c5e9311f24b7faa (diff) | |
download | u-boot-a70d991212c9684e09ed80ece69ce1ff7bfd9f08.tar.gz u-boot-a70d991212c9684e09ed80ece69ce1ff7bfd9f08.tar.bz2 u-boot-a70d991212c9684e09ed80ece69ce1ff7bfd9f08.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |