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:
@@ -3284,7 +3284,7 @@ void sde_crtc_complete_commit(struct drm_crtc *crtc,
|
|||||||
|
|
||||||
for (i = 0; i < MAX_DSI_DISPLAYS; i++) {
|
for (i = 0; i < MAX_DSI_DISPLAYS; i++) {
|
||||||
splash_display = &sde_kms->splash_data.splash_display[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)
|
crtc == splash_display->encoder->crtc)
|
||||||
cont_splash_enabled = true;
|
cont_splash_enabled = true;
|
||||||
}
|
}
|
||||||
|
@@ -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) {
|
if (sde_kms->splash_data.num_splash_displays != 1) {
|
||||||
SDE_ERROR("no. of displays not supported:%d\n",
|
SDE_ERROR("no. of displays not supported:%d\n",
|
||||||
sde_kms->splash_data.num_splash_displays);
|
sde_kms->splash_data.num_splash_displays);
|
||||||
|
ret = -EINVAL;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user