Эх сурвалжийг харах

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 жил өмнө
parent
commit
c4f345dd75

+ 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) {