summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBibby Hsieh <bibby.hsieh@mediatek.com>2016-09-29 11:29:48 +0800
committerCK Hu <ck.hu@mediatek.com>2016-10-19 09:05:44 +0800
commitf752fff611b99f5679224f3990a1f531ea64b1ec (patch)
tree1a68db47b1a1359ce7251d23dd98168193e82b83 /drivers/gpu
parent83ba62bc700bab710b22be3a1bf6cf973f754273 (diff)
downloadlinux-stable-f752fff611b99f5679224f3990a1f531ea64b1ec.tar.gz
linux-stable-f752fff611b99f5679224f3990a1f531ea64b1ec.tar.bz2
linux-stable-f752fff611b99f5679224f3990a1f531ea64b1ec.zip
drm/mediatek: set vblank_disable_allowed to true
MTK DRM driver didn't set the vblank_disable_allowed to true, it cause that the irq_handler is called every 16.6 ms (every vblank) when the display didn't be updated. Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com> Acked-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_drm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index cf83f6507ec8..0b2ae47eb52c 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -217,6 +217,7 @@ static int mtk_drm_kms_init(struct drm_device *drm)
if (ret < 0)
goto err_component_unbind;
+ drm->vblank_disable_allowed = true;
drm_kms_helper_poll_init(drm);
drm_mode_config_reset(drm);