Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dmitry Rokosov and committed by
Jerome Brunet
16182ac3 5995a2f2

+2 -2
+2 -2
drivers/clk/meson/clk-pll.c
··· 436 436 437 437 ret = meson_clk_pll_enable(hw); 438 438 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); 441 441 /* 442 442 * FIXME: Do we really need/want this HACK ? 443 443 * It looks unsafe. what happens if the clock gets into a