diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-03-18 12:22:02 +0100 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2016-03-28 08:48:30 +0200 |
commit | eac5ad8861639754a3976bfa1581a73e772624c6 (patch) | |
tree | 8f5d63c56c7d11339fe870b5673018c201bee2d7 | |
parent | drm/rockchip: cancel pending vblanks on close (diff) | |
download | linux-eac5ad8861639754a3976bfa1581a73e772624c6.tar.xz linux-eac5ad8861639754a3976bfa1581a73e772624c6.zip |
drm/rockchip: vop: Don't reject empty modesets
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
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 44b2ba7b5cc9..c01a380e3bb9 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -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; |