Skip to content

Commit 16182ac

Browse files
rockosovjbrun3t
authored andcommitted
clk: meson: pll: print out pll name when unable to lock it
In most meson systems, multiple PLLs are present, making it difficult to identify the specific PLL that fails to lock. To address this issue, print out the name of the PLL that cannot be locked. Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> Link: https://lore.kernel.org/r/20240328195733.30572-1-ddrokosov@salutedevices.com Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
1 parent 5995a2f commit 16182ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/clk/meson/clk-pll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
436436

437437
ret = meson_clk_pll_enable(hw);
438438
if (ret) {
439-
pr_warn("%s: pll did not lock, trying to restore old rate %lu\n",
440-
__func__, old_rate);
439+
pr_warn("%s: pll %s didn't lock, trying to set old rate %lu\n",
440+
__func__, clk_hw_get_name(hw), old_rate);
441441
/*
442442
* FIXME: Do we really need/want this HACK ?
443443
* It looks unsafe. what happens if the clock gets into a

0 commit comments

Comments
 (0)