Skip to content

Commit 5cf0606

Browse files
asconcepciontdz
authored andcommitted
drm: simpledrm: fix wrong unit with pixel clock
Pixel clock has to be set in kHz. Signed-off-by: Alejandro Concepcion-Rodriguez <asconcepcion@acoro.eu> Fixes: 11e8f5f ("drm: Add simpledrm driver") Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/6f8554ef-1305-0dda-821c-f7d2e5644a48@acoro.eu
1 parent 842470c commit 5cf0606

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/tiny/simpledrm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static struct drm_display_mode simpledrm_mode(unsigned int width,
458458
{
459459
struct drm_display_mode mode = { SIMPLEDRM_MODE(width, height) };
460460

461-
mode.clock = 60 /* Hz */ * mode.hdisplay * mode.vdisplay;
461+
mode.clock = mode.hdisplay * mode.vdisplay * 60 / 1000 /* kHz */;
462462
drm_mode_set_name(&mode);
463463

464464
return mode;

0 commit comments

Comments
 (0)