]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm/dsi: fix hdisplay calculation when programming dsi registers
authorPengyu Luo <mitltlatltl@gmail.com>
Sat, 14 Feb 2026 10:51:28 +0000 (18:51 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 24 Feb 2026 07:22:40 +0000 (09:22 +0200)
commitac47870fd795549f03d57e0879fc730c79119f4b
tree1df85252ce9501765d1a28eebd73982d3236613a
parent5886cc8f895bf578903eb681fca9123065e1012e
drm/msm/dsi: fix hdisplay calculation when programming dsi registers

Recently, the hdisplay calculation is working for 3:1 compressed ratio
only. If we have a video panel with DSC BPP = 8, and BPC = 10, we still
use the default bits_per_pclk = 24, then we get the wrong hdisplay. We
can draw the conclusion by cross-comparing the calculation with the
calculation in dsi_adjust_pclk_for_compression().

Since CMD mode does not use this, we can remove
!(msm_host->mode_flags & MIPI_DSI_MODE_VIDEO) safely.

Fixes: efcbd6f9cdeb ("drm/msm/dsi: Enable widebus for DSI")
Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/704822/
Link: https://lore.kernel.org/r/20260214105145.105308-1-mitltlatltl@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/dsi/dsi_host.c