]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: clk-uclass: Print clk name in clk_enable/clk_disable
authorMichael Trimarchi <michael@amarulasolutions.com>
Tue, 9 Jul 2024 06:28:13 +0000 (08:28 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 1 Aug 2024 21:35:28 +0000 (15:35 -0600)
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>
drivers/clk/clk-uclass.c

index 896a0f3d302a390d4ea0f6b468e25815641ec311..16169dac23409fc8b49289be22f5783a7024a791 100644 (file)
@@ -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);