drm/bridge: tc358767: Fix use of unadjusted mode in the driver
authorMarek Vasut <marex@denx.de>
Sat, 26 Oct 2024 04:10:42 +0000 (06:10 +0200)
committerRobert Foss <rfoss@kernel.org>
Mon, 28 Oct 2024 14:24:05 +0000 (15:24 +0100)
The driver configures mostly Pixel PLL from the clock cached in
local copy of the mode. Make sure the driver uses adjusted mode
which contains the updated Pixel PLL settings negotiated in
tc_dpi_atomic_check()/tc_edp_atomic_check().

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241026041057.247640-1-marex@denx.de
drivers/gpu/drm/bridge/tc358767.c

index 0c48e74..d52d55e 100644 (file)
@@ -1707,7 +1707,7 @@ static void tc_bridge_mode_set(struct drm_bridge *bridge,
 {
        struct tc_data *tc = bridge_to_tc(bridge);
 
-       drm_mode_copy(&tc->mode, mode);
+       drm_mode_copy(&tc->mode, adj);
 }
 
 static const struct drm_edid *tc_edid_read(struct drm_bridge *bridge,