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

Commit 2a0dee1f authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata
Browse files

drm/msm/dsi-staging: Prevent modeset on first frame update



DMS(Dynamic Mode Switch) is not expected to be turned on
during first frame update in continuous splash use case.

CRs-Fixed: 2180708
Change-Id: I1b3162c589577c69a235227022c2ad94b3596245
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent 3c22344d
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -4954,12 +4954,15 @@ int dsi_display_prepare(struct dsi_display *display)
	mode = display->panel->cur_mode;
	mode = display->panel->cur_mode;


	if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {
	if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {
		if (display->is_cont_splash_enabled) {
			pr_err("DMS is not supposed to be set on first frame\n");
			return -EINVAL;
		}
		/* update dsi ctrl for new mode */
		/* update dsi ctrl for new mode */
		rc = dsi_display_pre_switch(display);
		rc = dsi_display_pre_switch(display);
		if (rc)
		if (rc)
			pr_err("[%s] panel pre-prepare-res-switch failed, rc=%d\n",
			pr_err("[%s] panel pre-prepare-res-switch failed, rc=%d\n",
					display->name, rc);
					display->name, rc);

		goto error;
		goto error;
	}
	}