Преглед на файлове

msm: sde: notify driver client of resource allocation failure

Events can be registered by the driver clients using the custom event
registration ioctl.If display is not powered on when custom ioctl is
called, registration fails.Currently driver notifies user-space client
invalid error,instead it should notify that resources are not allocated
for display so that user-space client can retry.

Change-Id: Ia6e35c8c32bf00dbe2ef51b13092edf7bf5f41f7
Signed-off-by: Xu Yang <[email protected]>
Signed-off-by: Gopikrishnaiah Anandan <[email protected]>
Gopikrishnaiah Anandan преди 5 години
родител
ревизия
c4f345dd75
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      msm/sde/sde_color_processing.c

+ 1 - 1
msm/sde/sde_color_processing.c

@@ -3874,7 +3874,7 @@ int sde_cp_ltm_hist_interrupt(struct drm_crtc *crtc, bool en,
 	hw_dspp = sde_crtc->mixers[0].hw_dspp;
 	if (!hw_dspp) {
 		DRM_ERROR("invalid dspp\n");
-		return -EINVAL;
+		return -ENODEV;
 	}
 
 	if (en) {