drm/tegra: sor - Remove pixel clock rounding
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 23 May 2014 03:32:46 +0000 (20:32 -0700)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jun 2014 10:02:31 +0000 (12:02 +0200)
The code currently rounds up the clock to the next MHZ, which is
rounding up a 69.5MHz clock to 70MHz on my machine. This in turn
prevents the display from syncing. Removing this rounding fixes eDP
for me.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c

index 93ae4fa..e22325f 100644 (file)
@@ -876,9 +876,6 @@ static int tegra_output_sor_setup_clock(struct tegra_output *output,
        struct tegra_sor *sor = to_sor(output);
        int err;
 
-       /* round to next MHz */
-       pclk = DIV_ROUND_UP(pclk, 1000000) * 1000000;
-
        err = clk_set_parent(clk, sor->clk_parent);
        if (err < 0) {
                dev_err(sor->dev, "failed to set parent clock: %d\n", err);