drm/mediatek: set vblank_disable_allowed to true
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Thu, 29 Sep 2016 03:29:48 +0000 (11:29 +0800)
committerCK Hu <ck.hu@mediatek.com>
Wed, 19 Oct 2016 01:05:44 +0000 (09:05 +0800)
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>
drivers/gpu/drm/mediatek/mtk_drm_drv.c

index cf83f6507ec8211566f87cbf4878e5d76c3eff0b..0b2ae47eb52ca7728c6c17301262acdae6310b4e 100644 (file)
@@ -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);