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

Commit 098bac6d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 9119485a 2a0dee1f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -5175,12 +5175,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;
	}