Skip to content

Commit e82ef4e

Browse files
right-0903gregkh
authored andcommitted
drm/msm/dsi: fix bits_per_pclk
[ Upstream commit 2d51cfb ] 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: ac47870 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 94e0212 commit e82ef4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/msm/dsi/dsi_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ static void dsi_timing_setup(struct msm_dsi_host *msm_host, bool is_bonded_dsi)
10481048
*/
10491049
h_total -= hdisplay;
10501050
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;
10521052
else
10531053
bits_per_pclk = 24;
10541054

0 commit comments

Comments
 (0)