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

Commit a873b888 authored by Kalyan Thota's avatar Kalyan Thota
Browse files

drm:msm:dsi reject commit if seemless comes with active changed



Reject composition if any seemless transition such as VRR, dynclk
is requested during power on/off commits.

Change-Id: I731bfc06b3bd1e7ae920c12cbc68f95f5cc01687
Signed-off-by: default avatarKalyan Thota <kalyant@codeaurora.org>
parent b10aaf58
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -396,6 +396,16 @@ static bool dsi_bridge_mode_fixup(struct drm_bridge *bridge,
			(!crtc_state->active_changed ||
			 display->is_cont_splash_enabled))
			dsi_mode.dsi_mode_flags |= DSI_MODE_FLAG_DMS;

		/* Reject seemless transition when active changed. */
		if (crtc_state->active_changed &&
			((dsi_mode.dsi_mode_flags & DSI_MODE_FLAG_VRR) ||
			(dsi_mode.dsi_mode_flags & DSI_MODE_FLAG_DYN_CLK))) {
			pr_err("seamless upon active changed 0x%x %d\n",
				dsi_mode.dsi_mode_flags,
				crtc_state->active_changed);
			return false;
		}
	}

	/* convert back to drm mode, propagating the private info & flags */