Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac5ad88 authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by Mark Yao
Browse files

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: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_NsjGMhfxYheHR8xXXmacZs+p5SHw@mail.gmail.com
parent f135046e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;