disp: msm: sde: propagate the error code in dual display TUI cases

Propagate error in case the number of active displays is greater
than 1, in dual display scenario to fail the validate.

Change-Id: I04250af8d7a6b0c290132abbaed2ed8e5e311a4f
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
This commit is contained in:
Raviteja Tamatam
2023-04-25 17:54:44 -07:00
parent 825dd16313
commit 26c011089e
2 changed files with 2 additions and 1 deletions

View File

@@ -3284,7 +3284,7 @@ void sde_crtc_complete_commit(struct drm_crtc *crtc,
for (i = 0; i < MAX_DSI_DISPLAYS; i++) {
splash_display = &sde_kms->splash_data.splash_display[i];
if (splash_display->cont_splash_enabled &&
if (splash_display->cont_splash_enabled && splash_display->encoder &&
crtc == splash_display->encoder->crtc)
cont_splash_enabled = true;
}

View File

@@ -5342,6 +5342,7 @@ int sde_kms_vm_trusted_resource_init(struct sde_kms *sde_kms,
if (sde_kms->splash_data.num_splash_displays != 1) {
SDE_ERROR("no. of displays not supported:%d\n",
sde_kms->splash_data.num_splash_displays);
ret = -EINVAL;
goto error;
}