Skip to content

Commit f3cb045

Browse files
Kaustabh Chakrabortydaeinki
authored andcommitted
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 <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent d31bbac commit f3cb045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/exynos/exynos7_drm_decon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void decon_ctx_remove(struct decon_context *ctx)
137137
static u32 decon_calc_clkdiv(struct decon_context *ctx,
138138
const struct drm_display_mode *mode)
139139
{
140-
unsigned long ideal_clk = mode->clock;
140+
unsigned long ideal_clk = mode->clock * 1000;
141141
u32 clkdiv;
142142

143143
/* Find the clock divider value that gets us closest to ideal_clk */

0 commit comments

Comments
 (0)