From 28c41da2693fe448aeda7c03070c376290b93805 Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Wed, 14 Jun 2017 08:55:31 +0800 Subject: [PATCH] drm/rockchip: vop: get rid of max_output.height check Actually vop hardware has no output height limit, so no need limit display with max_output.height Change-Id: Ide70cb28af9a23c1a12c068168b13aac37041b28 Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 54c05751f8df..ca779ea5869e 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -1588,8 +1588,6 @@ 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->vdisplay > vop_data->max_output.height) - return MODE_BAD_VVALUE; if (mode->flags & DRM_MODE_FLAG_DBLCLK) request_clock *= 2; @@ -1624,8 +1622,7 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc, struct vop *vop = to_vop(crtc); const struct vop_data *vop_data = vop->data; - if (mode->hdisplay > vop_data->max_output.width || - mode->vdisplay > vop_data->max_output.height) + if (mode->hdisplay > vop_data->max_output.width) return false; drm_mode_set_crtcinfo(adj_mode, -- 2.34.1