]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk/aspeed: Add debug message when clock fails
authorJoel Stanley <joel@jms.id.au>
Thu, 23 Jun 2022 09:05:30 +0000 (18:35 +0930)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jul 2022 18:31:29 +0000 (14:31 -0400)
A common message across platforms that prints the clock number.

Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/clk/aspeed/clk_ast2500.c
drivers/clk/aspeed/clk_ast2600.c

index a1b4496ca2c6cf98b40991553f1f876e230b37eb..dcf299548de1a81e9f2be0d6e83dd3e2b26067cf 100644 (file)
@@ -173,6 +173,7 @@ static ulong ast2500_clk_get_rate(struct clk *clk)
                rate = ast2500_get_uart_clk_rate(priv->scu, 5);
                break;
        default:
+               debug("%s: unknown clk %ld\n", __func__, clk->id);
                return -ENOENT;
        }
 
@@ -438,6 +439,7 @@ static ulong ast2500_clk_set_rate(struct clk *clk, ulong rate)
                new_rate = ast2500_configure_d2pll(priv->scu, rate);
                break;
        default:
+               debug("%s: unknown clk %ld\n", __func__, clk->id);
                return -ENOENT;
        }
 
@@ -480,6 +482,7 @@ static int ast2500_clk_enable(struct clk *clk)
                ast2500_configure_d2pll(priv->scu, D2PLL_DEFAULT_RATE);
                break;
        default:
+               debug("%s: unknown clk %ld\n", __func__, clk->id);
                return -ENOENT;
        }
 
index f191b0f317076a8627e287771869ae9e50fd56dd..7d85c7f09823bbf76df5f9fde01ef8c96cf9d9a0 100644 (file)
@@ -471,7 +471,7 @@ static ulong ast2600_clk_get_rate(struct clk *clk)
                rate = ast2600_get_uart_huxclk_rate(priv->scu);
                break;
        default:
-               debug("can't get clk rate\n");
+               debug("%s: unknown clk %ld\n", __func__, clk->id);
                return -ENOENT;
        }
 
@@ -1098,7 +1098,7 @@ static int ast2600_clk_enable(struct clk *clk)
                ast2600_enable_rsaclk(priv->scu);
                break;
        default:
-               pr_err("can't enable clk\n");
+               debug("%s: unknown clk %ld\n", __func__, clk->id);
                return -ENOENT;
        }