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

Commit 84af7689 authored by Adrian Salido-Moreno's avatar Adrian Salido-Moreno
Browse files

msm: mdss: update error codes returned to user space



Some of the error codes reported to user space may not be properly
handled or can be confused. Replacing the error codes returned with more
unique ones to correctly identify problem.

CRs-Fixed: 549702
Change-Id: I01ffff79e748fc852898dc7605fd15873dfb33f8
Signed-off-by: default avatarAdrian Salido-Moreno <adrianm@codeaurora.org>
parent d6e87cbf
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -374,7 +374,7 @@ static int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,


	if (req->flags & MDP_ROT_90) {
	if (req->flags & MDP_ROT_90) {
		pr_err("unsupported inline rotation\n");
		pr_err("unsupported inline rotation\n");
		return -ENOTSUPP;
		return -EOPNOTSUPP;
	}
	}


	if ((req->dst_rect.w > MAX_DST_W) || (req->dst_rect.h > MAX_DST_H)) {
	if ((req->dst_rect.w > MAX_DST_W) || (req->dst_rect.h > MAX_DST_H)) {
@@ -438,7 +438,7 @@ static int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,


		if (pipe == NULL) {
		if (pipe == NULL) {
			pr_err("error allocating pipe\n");
			pr_err("error allocating pipe\n");
			return -ENOMEM;
			return -ENODEV;
		}
		}


		ret = mdss_mdp_pipe_map(pipe);
		ret = mdss_mdp_pipe_map(pipe);
+1 −1
Original line number Original line Diff line number Diff line
@@ -246,7 +246,7 @@ int mdss_mdp_smp_reserve(struct mdss_mdp_pipe *pipe)
		for (; i >= 0; i--)
		for (; i >= 0; i--)
			mdss_mdp_smp_mmb_free(pipe->smp_map[i].reserved,
			mdss_mdp_smp_mmb_free(pipe->smp_map[i].reserved,
				false);
				false);
		rc = -ENOMEM;
		rc = -ENOBUFS;
	}
	}
	mutex_unlock(&mdss_mdp_smp_lock);
	mutex_unlock(&mdss_mdp_smp_lock);