clk: meson: pll: print out pll name when unable to lock it
authorDmitry Rokosov <ddrokosov@salutedevices.com>
Thu, 28 Mar 2024 19:57:29 +0000 (22:57 +0300)
committerJerome Brunet <jbrunet@baylibre.com>
Fri, 29 Mar 2024 11:24:40 +0000 (12:24 +0100)
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>
drivers/clk/meson/clk-pll.c

index 6fa7639a30503b679f58e182a5a0a27b97c47b28..78d17b2415afc1980695abceea283c90e92c46f0 100644 (file)
@@ -436,8 +436,8 @@ static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
 
        ret = meson_clk_pll_enable(hw);
        if (ret) {
-               pr_warn("%s: pll did not lock, trying to restore old rate %lu\n",
-                       __func__, old_rate);
+               pr_warn("%s: pll %s didn't lock, trying to set old rate %lu\n",
+                       __func__, clk_hw_get_name(hw), old_rate);
                /*
                 * FIXME: Do we really need/want this HACK ?
                 * It looks unsafe. what happens if the clock gets into a