mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
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 <mark.yao@rock-chips.com>
This commit is contained in:
parent
79300b3d8b
commit
28c41da269
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user