drm/msm/dsi: fix bits_per_pclk

mipi_dsi_pixel_format_to_bpp return dst bpp not src bpp, dst bpp may
not be the uncompressed data size. use src bpc * 3 to get src bpp,
this aligns with pclk rate calculation.

Fixes: ac47870fd7 ("drm/msm/dsi: fix hdisplay calculation when programming dsi registers")
Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/709916/
Link: https://lore.kernel.org/r/20260307111250.105772-1-mitltlatltl@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
This commit is contained in:
Pengyu Luo 2026-03-07 19:12:48 +08:00 committed by Dmitry Baryshkov
parent 961c900628
commit 2d51cfb77d

View File

@ -1048,7 +1048,7 @@ static void dsi_timing_setup(struct msm_dsi_host *msm_host, bool is_bonded_dsi)
*/
h_total -= hdisplay;
if (wide_bus_enabled)
bits_per_pclk = mipi_dsi_pixel_format_to_bpp(msm_host->format);
bits_per_pclk = dsc->bits_per_component * 3;
else
bits_per_pclk = 24;