Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e52b17e authored by Xu Yang's avatar Xu Yang
Browse files

drm/msm/sde: Change error code type when crtc is not attached



Change error code to EPERM when crtc is not attached. This is to
distinguish from EINVAL for userspace to take different approach.

Change-Id: I47da4cd8be9b47317b47fbcaf3e19121ec19ebf1
Signed-off-by: default avatarXu Yang <yangxu@codeaurora.org>
parent 14fd7a29
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1028,7 +1028,7 @@ int sde_cp_crtc_set_property(struct drm_crtc *crtc,
	    sde_crtc->num_mixers > ARRAY_SIZE(sde_crtc->mixers)) {
		DRM_ERROR("Invalid mixer config act cnt %d max cnt %ld\n",
			sde_crtc->num_mixers, ARRAY_SIZE(sde_crtc->mixers));
		ret = -EINVAL;
		ret = -EPERM;
		goto exit;
	}

@@ -1896,7 +1896,7 @@ int sde_cp_hist_interrupt(struct drm_crtc *crtc_drm, bool en,

	if (!hw_dspp) {
		DRM_ERROR("invalid dspp\n");
		ret = -EINVAL;
		ret = -EPERM;
		goto exit;
	}