소스 검색

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 <[email protected]>
Raviteja Tamatam 2 년 전
부모
커밋
26c011089e
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      msm/sde/sde_crtc.c
  2. 1 0
      msm/sde/sde_kms.c

+ 1 - 1
msm/sde/sde_crtc.c

@@ -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;
 	}

+ 1 - 0
msm/sde/sde_kms.c

@@ -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;
 	}