Merge "disp: msm: allow DMS before cont-splash handoff"

This commit is contained in:
qctecmdr
2019-06-08 17:50:00 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 11 additions and 7 deletions

View File

@@ -6380,10 +6380,12 @@ int dsi_display_prepare(struct dsi_display *display)
dsi_display_ctrl_isr_configure(display, true);
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");
if (display->is_cont_splash_enabled &&
display->config.panel_mode == DSI_OP_VIDEO_MODE) {
pr_err("DMS not supported on first frame\n");
return -EINVAL;
}
/* update dsi ctrl for new mode */
rc = dsi_display_pre_switch(display);
if (rc)