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

Commit 4d1c1237 authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata Committed by Gerrit - the friendly Code Review server
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 b2c1bfad
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4861,12 +4861,15 @@ int dsi_display_prepare(struct dsi_display *display)
	mode = display->panel->cur_mode;

	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 */
		rc = dsi_display_pre_switch(display);
		if (rc)
			pr_err("[%s] panel pre-prepare-res-switch failed, rc=%d\n",
					display->name, rc);

		goto error;
	}