Skip to content

Commit cfb2922

Browse files
jayesh-titomba
authored andcommitted
drm/tidss: Set crtc modesetting parameters with adjusted mode
TIDSS uses crtc_* fields to propagate its registers and set the clock rates. So set the CRTC modesetting timing parameters with the adjusted mode when needed, to set correct values. Cc: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> Link: https://lore.kernel.org/r/20250624080402.302526-1-j-choudhary@ti.com Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
1 parent 7070f55 commit cfb2922

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/tidss/tidss_crtc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static int tidss_crtc_atomic_check(struct drm_crtc *crtc,
9191
struct dispc_device *dispc = tidss->dispc;
9292
struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
9393
u32 hw_videoport = tcrtc->hw_videoport;
94-
const struct drm_display_mode *mode;
94+
struct drm_display_mode *mode;
9595
enum drm_mode_status ok;
9696

9797
dev_dbg(ddev->dev, "%s\n", __func__);
@@ -108,6 +108,9 @@ static int tidss_crtc_atomic_check(struct drm_crtc *crtc,
108108
return -EINVAL;
109109
}
110110

111+
if (drm_atomic_crtc_needs_modeset(crtc_state))
112+
drm_mode_set_crtcinfo(mode, 0);
113+
111114
return dispc_vp_bus_check(dispc, hw_videoport, crtc_state);
112115
}
113116

0 commit comments

Comments
 (0)