From bccd5ee2bd834840e324b9b6ce2a0518cbe96ef7 Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Fri, 7 Jul 2017 16:23:50 +0800 Subject: [PATCH] drm/rockchip: vop: fliter interlace mode rk3288 and rk3368 are not support interlace mode Change-Id: I5b6c155095285a5ae6e574efba122b56ddb1a112 Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.34.1