From: Bibby Hsieh Date: Thu, 29 Sep 2016 03:29:48 +0000 (+0800) Subject: drm/mediatek: set vblank_disable_allowed to true X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f752fff611b99f5679224f3990a1f531ea64b1ec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: CK Hu --- 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);