drm/bridge: fsl-ldb: make warning message more informative
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 6 Mar 2025 17:28:41 +0000 (18:28 +0100)
committerLiu Ying <victor.liu@nxp.com>
Mon, 24 Mar 2025 02:24:41 +0000 (10:24 +0800)
This warning notifies a clock was set to an inaccurate value. Modify the
string to also show the clock name.

While doing that also rewrap the entire function call.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306-drm-two-ldb-improvements-v1-2-f139d768b92c@bootlin.com
drivers/gpu/drm/bridge/fsl-ldb.c

index 72d8f32d48faf6726ea67d8770ed83f77f3a0862..2cb6dfc7a6d3dbdd620a35345204f8fb9cae6651 100644 (file)
@@ -181,9 +181,9 @@ static void fsl_ldb_atomic_enable(struct drm_bridge *bridge,
 
        configured_link_freq = clk_get_rate(fsl_ldb->clk);
        if (configured_link_freq != requested_link_freq)
-               dev_warn(fsl_ldb->dev, "Configured LDB clock (%lu Hz) does not match requested LVDS clock: %lu Hz\n",
-                        configured_link_freq,
-                        requested_link_freq);
+               dev_warn(fsl_ldb->dev,
+                        "Configured %pC clock (%lu Hz) does not match requested LVDS clock: %lu Hz\n",
+                        fsl_ldb->clk, configured_link_freq, requested_link_freq);
 
        clk_prepare_enable(fsl_ldb->clk);