drm/rockchip: vop: get rid of max_output.height check
authorMark Yao <mark.yao@rock-chips.com>
Wed, 14 Jun 2017 00:55:31 +0000 (08:55 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 14 Jun 2017 01:33:21 +0000 (09:33 +0800)
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 <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c

index 54c05751f8dfad84f02541a7669b1f54858537f1..ca779ea5869e7b81e71e628e34dc7a856d362d18 100644 (file)
@@ -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,