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: Lipsa Rout <lrout@codeaurora.org> Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
@@ -6921,12 +6921,14 @@ int dsi_display_prepare(struct dsi_display *display)
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* 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",
|
||||
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-switch failed, rc=%d\n",
|
||||
display->name, rc);
|
||||
goto error;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(mode->dsi_mode_flags & DSI_MODE_FLAG_POMS) &&
|
||||
|
مرجع در شماره جدید
Block a user