Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: ac47870fd795 ("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>

authored by

Pengyu Luo and committed by
Dmitry Baryshkov
2d51cfb7 961c9006

+1 -1
+1 -1
drivers/gpu/drm/msm/dsi/dsi_host.c
··· 1048 1048 */ 1049 1049 h_total -= hdisplay; 1050 1050 if (wide_bus_enabled) 1051 - bits_per_pclk = mipi_dsi_pixel_format_to_bpp(msm_host->format); 1051 + bits_per_pclk = dsc->bits_per_component * 3; 1052 1052 else 1053 1053 bits_per_pclk = 24; 1054 1054