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

Commit 918f7479 authored by Satya Rama Aditya Pinapala's avatar Satya Rama Aditya Pinapala
Browse files

disp: msm: dsi: do not skip DSI CTRL init for DMS on first frame



For command mode panels, if a dynamic mode switch occurs on
the first frame, the current code skips DSI controller initialization
and registering for error handlers. This causes the software state
to be uninitialized for DSI CTRL, resulting in command transfer
failures and eventual crash. The change ensures that initialization
is complete even if the DMS occurs on first frame.

Change-Id: I83e3336f7c09424b6c7b95826c30b37974ec29ab
Signed-off-by: default avatarLipsa Rout <lrout@codeaurora.org>
Signed-off-by: default avatarSatya Rama Aditya Pinapala <psraditya30@codeaurora.org>
parent 64675ef2
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -6921,13 +6921,15 @@ int dsi_display_prepare(struct dsi_display *display)
			goto error;
		}

		if (!display->is_cont_splash_enabled) {
			/* update dsi ctrl for new mode */
			rc = dsi_display_pre_switch(display);
			if (rc)
			DSI_ERR("[%s] panel pre-prepare-res-switch failed, rc=%d\n",
				DSI_ERR("[%s] panel pre-switch failed, rc=%d\n",
					display->name, rc);
			goto error;
		}
	}

	if (!(mode->dsi_mode_flags & DSI_MODE_FLAG_POMS) &&
		(!display->is_cont_splash_enabled)) {