From 1a333e5d58d8f3bdf563e4b3b0eb418ec529d8b4 Mon Sep 17 00:00:00 2001 From: Arun Swain Date: Mon, 27 Oct 2014 14:26:32 -0700 Subject: [PATCH] video: tegra12: dc: fix clk_round_rate error In order to get the next emc frequency add 1 Mhz instead of 1 to the current emc frequency. Bug 200048302 Change-Id: I9249a472874eafd94c3d5bb99a5073b16a56f665 Signed-off-by: Arun Swain Reviewed-on: http://git-master/r/590519 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo Reviewed-by: Adeel Raza Reviewed-by: Aleksandr Frid Reviewed-by: Chao Xu Reviewed-by: Mitch Luban --- drivers/video/tegra/dc/bandwidth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/tegra/dc/bandwidth.c b/drivers/video/tegra/dc/bandwidth.c index a232adbba89..3e274278137 100644 --- a/drivers/video/tegra/dc/bandwidth.c +++ b/drivers/video/tegra/dc/bandwidth.c @@ -563,7 +563,7 @@ static void tegra_dc_set_latency_allowance(struct tegra_dc *dc, break; } - next_freq = clk_round_rate(emc_clk, emc_freq_hz + 1); + next_freq = clk_round_rate(emc_clk, emc_freq_hz + 1000000); if (emc_freq_hz != next_freq) emc_freq_hz = next_freq; -- 2.39.2