Skip to content

Commit f12e0e1

Browse files
MarijnS95lumag
authored andcommitted
drm/msm/dsi: Print dual-DSI-adjusted pclk instead of original mode pclk
When dual-DSI (bonded DSI) was added in commit ed9976a ("drm/msm/dsi: adjust dsi timing for dual dsi mode") some DBG() prints were not updated, leading to print the original mode->clock rather than the adjusted (typically the mode clock divided by two, though more recently also adjusted for DSC compression) msm_host->pixel_clk_rate which is passed to clk_set_rate() just below. Fix that by printing the actual pixel_clk_rate that is being set. Fixes: ed9976a ("drm/msm/dsi: adjust dsi timing for dual dsi mode") Signed-off-by: Marijn Suijten <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/589896/ Link: https://lore.kernel.org/r/20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-1-78ae3ee9a697@somainline.org Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 87d322e commit f12e0e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ int dsi_link_clk_set_rate_6g(struct msm_dsi_host *msm_host)
356356
{
357357
int ret;
358358

359-
DBG("Set clk rates: pclk=%d, byteclk=%lu",
360-
msm_host->mode->clock, msm_host->byte_clk_rate);
359+
DBG("Set clk rates: pclk=%lu, byteclk=%lu",
360+
msm_host->pixel_clk_rate, msm_host->byte_clk_rate);
361361

362362
ret = dev_pm_opp_set_rate(&msm_host->pdev->dev,
363363
msm_host->byte_clk_rate);
@@ -430,9 +430,9 @@ int dsi_link_clk_set_rate_v2(struct msm_dsi_host *msm_host)
430430
{
431431
int ret;
432432

433-
DBG("Set clk rates: pclk=%d, byteclk=%lu, esc_clk=%lu, dsi_src_clk=%lu",
434-
msm_host->mode->clock, msm_host->byte_clk_rate,
435-
msm_host->esc_clk_rate, msm_host->src_clk_rate);
433+
DBG("Set clk rates: pclk=%lu, byteclk=%lu, esc_clk=%lu, dsi_src_clk=%lu",
434+
msm_host->pixel_clk_rate, msm_host->byte_clk_rate,
435+
msm_host->esc_clk_rate, msm_host->src_clk_rate);
436436

437437
ret = clk_set_rate(msm_host->byte_clk, msm_host->byte_clk_rate);
438438
if (ret) {

0 commit comments

Comments
 (0)