From 76245adbc149170999340a61d171e29b86b02218 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Fri, 14 Mar 2014 14:20:42 +0100 Subject: [PATCH] drm/tegra: dsi - Do not needlessly recompute pclk In some cases the pixel clock used to not be correct, which is why it had to be recomputed. It turns out that the reason why it wasn't correct is that it was used wrongly. If used correctly there's not need for the recomputation. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/dsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index beab9c8..3838575 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -602,7 +602,6 @@ static int tegra_output_dsi_setup_clock(struct tegra_output *output, DRM_DEBUG_KMS("vrefresh: %u\n", vrefresh); /* compute byte clock */ - pclk = mode->htotal * mode->vtotal * vrefresh; bclk = (pclk * mul) / (div * dsi->lanes); /* -- 2.7.4