drm/rockchip: vop: Don't reject empty modesets
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 18 Mar 2016 11:22:02 +0000 (12:22 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 28 Mar 2016 06:48:30 +0000 (14:48 +0800)
So that when DRM_IOCTL_MODE_SETCRTC is called without a FB nor mode, the
CRTC gets disabled.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_NsjGMhfxYheHR8xXXmacZs+p5SHw@mail.gmail.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c

index 44b2ba7b5cc963a82ee971d875c2d35460fbdf9a..c01a380e3bb904490c282d75f0180d4a261d03b9 100644 (file)
@@ -907,9 +907,6 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc,
 {
        struct vop *vop = to_vop(crtc);
 
-       if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0)
-               return false;
-
        adjusted_mode->clock =
                clk_round_rate(vop->dclk, mode->clock * 1000) / 1000;