From: Kaustabh Chakraborty Date: Fri, 1 Nov 2024 02:31:10 +0000 (+0900) Subject: drm/exynos: exynos7_drm_decon: fix ideal_clk by converting it to Hz X-Git-Tag: microblaze-v6.16~490^2~14^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=f3cb045e2603e80a1633883423b2621aad77989d;p=linux-2.6-microblaze.git drm/exynos: exynos7_drm_decon: fix ideal_clk by converting it to Hz The clkdiv values are incorrect as ideal_clk is in kHz and the clock rate of vclk is in Hz. Multiply 1000 to ideal_clk to bring it to Hz. Signed-off-by: Kaustabh Chakraborty Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c index e994779694f0..76a3f4b0341d 100644 --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c @@ -137,7 +137,7 @@ static void decon_ctx_remove(struct decon_context *ctx) static u32 decon_calc_clkdiv(struct decon_context *ctx, const struct drm_display_mode *mode) { - unsigned long ideal_clk = mode->clock; + unsigned long ideal_clk = mode->clock * 1000; u32 clkdiv; /* Find the clock divider value that gets us closest to ideal_clk */