From a10da2195ca6d1709feb2803cd04c731c59812a2 Mon Sep 17 00:00:00 2001 From: Sandy Huang Date: Wed, 10 Apr 2024 15:59:21 +0800 Subject: [PATCH] drm/rockchip: dsi: use mode crtc_* timing for hardware config The mode contains two copies of timings, first are the plain and origin timings, this should keep unchanged, the second are copy from the first timing by add some computed and special fixup, this is associate with hardware. Signed-off-by: Sandy Huang Change-Id: I2b20b6345149cc96f6d12ccc9d6b41b85d6b9c10 --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index f45ffe530583..f8ecb01f355b 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -736,9 +736,9 @@ static void dw_mipi_dsi_line_timer_config(struct dw_mipi_dsi *dsi, { u32 htotal, hsa, hbp, lbcc; - htotal = mode->htotal; - hsa = mode->hsync_end - mode->hsync_start; - hbp = mode->htotal - mode->hsync_end; + htotal = mode->crtc_htotal; + hsa = mode->crtc_hsync_end - mode->crtc_hsync_start; + hbp = mode->crtc_htotal - mode->crtc_hsync_end; /* * TODO dw drv improvements