aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibby Hsieh <bibby.hsieh@mediatek.com>2016-09-28 23:29:48 -0400
committerCK Hu <ck.hu@mediatek.com>2016-10-18 21:05:44 -0400
commitf752fff611b99f5679224f3990a1f531ea64b1ec (patch)
tree1a68db47b1a1359ce7251d23dd98168193e82b83
parent83ba62bc700bab710b22be3a1bf6cf973f754273 (diff)
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>
-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)
217 if (ret < 0) 217 if (ret < 0)
218 goto err_component_unbind; 218 goto err_component_unbind;
219 219
220 drm->vblank_disable_allowed = true;
220 drm_kms_helper_poll_init(drm); 221 drm_kms_helper_poll_init(drm);
221 drm_mode_config_reset(drm); 222 drm_mode_config_reset(drm);
222 223