浏览代码

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