From: Mark Yao Date: Fri, 7 Jul 2017 08:23:50 +0000 (+0800) Subject: drm/rockchip: vop: fliter interlace mode X-Git-Tag: release-20171130_firefly~4^2~245 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bccd5ee2bd834840e324b9b6ce2a0518cbe96ef7;p=firefly-linux-kernel-4.4.55.git drm/rockchip: vop: fliter interlace mode rk3288 and rk3368 are not support interlace mode Change-Id: I5b6c155095285a5ae6e574efba122b56ddb1a112 Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 89d09be7d0cd..4ef23ac55eb1 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -1592,6 +1592,11 @@ vop_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode, if (mode->hdisplay > vop_data->max_output.width) return MODE_BAD_HVALUE; + if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && + VOP_MAJOR(vop->data->version) == 3 && + VOP_MINOR(vop->data->version) <= 2) + return MODE_BAD; + if (mode->flags & DRM_MODE_FLAG_DBLCLK) request_clock *= 2; clock = clk_round_rate(vop->dclk, request_clock * 1000) / 1000;