Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-07-16 14:48:59 +0200
committerTakashi Iwai <tiwai@suse.de>2019-07-16 14:49:04 +0200
commit0c1e4495f5f8960aec6faa7486f0190519393b88 (patch)
treeed08b635529e6b86f6fc23a219c41fae6c154a8d
parent36d8c838e4326935909c133dd16b228af8690073 (diff)
drm/rockchip: Properly adjust to a true clock in adjusted_mode
(bsc#1051510). suse-commit: e2187f1f81f8f4b4a51762ccf2f4a950e3e6f0a9
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 40f468d0e9da..4f2f309c8aab 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -873,7 +873,8 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc,
struct vop *vop = to_vop(crtc);
adjusted_mode->clock =
- clk_round_rate(vop->dclk, mode->clock * 1000) / 1000;
+ DIV_ROUND_UP(clk_round_rate(vop->dclk, mode->clock * 1000),
+ 1000);
return true;
}