diff options
author | Joel Stanley <joel@jms.id.au> | 2022-06-23 18:35:30 +0930 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-07-06 14:31:29 -0400 |
commit | 67e20f9d65f1de5bc68753beba6f94c87272629b (patch) | |
tree | cc4c40382fddfa780e57c89dd602a5e15301a14f | |
parent | 0b2a749bc6573a3e66d339d9d74de30c1ab15c46 (diff) | |
download | u-boot-67e20f9d65f1de5bc68753beba6f94c87272629b.tar.gz u-boot-67e20f9d65f1de5bc68753beba6f94c87272629b.tar.bz2 u-boot-67e20f9d65f1de5bc68753beba6f94c87272629b.zip |
clk/aspeed: Add debug message when clock fails
A common message across platforms that prints the clock number.
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | drivers/clk/aspeed/clk_ast2500.c | 3 | ||||
-rw-r--r-- | drivers/clk/aspeed/clk_ast2600.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index a1b4496ca2..dcf299548d 100644 --- a/drivers/clk/aspeed/clk_ast2500.c +++ b/drivers/clk/aspeed/clk_ast2500.c @@ -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; } diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c index f191b0f317..7d85c7f098 100644 --- a/drivers/clk/aspeed/clk_ast2600.c +++ b/drivers/clk/aspeed/clk_ast2600.c @@ -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; } |