Commit 76245adb authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent 91eded9b
...@@ -602,7 +602,6 @@ static int tegra_output_dsi_setup_clock(struct tegra_output *output, ...@@ -602,7 +602,6 @@ static int tegra_output_dsi_setup_clock(struct tegra_output *output,
DRM_DEBUG_KMS("vrefresh: %u\n", vrefresh); DRM_DEBUG_KMS("vrefresh: %u\n", vrefresh);
/* compute byte clock */ /* compute byte clock */
pclk = mode->htotal * mode->vtotal * vrefresh;
bclk = (pclk * mul) / (div * dsi->lanes); bclk = (pclk * mul) / (div * dsi->lanes);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment