Skip to content

Commit

Permalink
drm/rockchip: vop: Don't reject empty modesets
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Tomeu Vizoso authored and Mark Yao committed Mar 28, 2016
1 parent f135046 commit eac5ad8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/rockchip/rockchip_drm_vop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit eac5ad8

Please sign in to comment.