drm/tegra: dsi - Do not needlessly recompute pclk
authorThierry Reding <treding@nvidia.com>
Fri, 14 Mar 2014 13:20:42 +0000 (14:20 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 21:09:34 +0000 (23:09 +0200)
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 <treding@nvidia.com>
drivers/gpu/drm/tegra/dsi.c

index beab9c85db922e44f2e2bea0e5304272b9b31651..3838575f71c64c6e2a7966adc20f284e773401c4 100644 (file)
@@ -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);
 
        /*