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

Commit 52ed6048 authored by Benet Clark's avatar Benet Clark
Browse files

msm: mdss: Check if histogram has been disabled in collect



Before setting the histogram state back to ready or idle, check if
the histogram has been disabled to prevent state corruption.

Change-Id: I3973eee852dfcd522bed639a22faa2519d1f2646
Signed-off-by: default avatarBenet Clark <benetc@codeaurora.org>
parent de52f151
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3483,7 +3483,8 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
			spin_unlock_irqrestore(&hist_info->hist_lock, flag);
			goto hist_collect_exit;
		}
		if (hist_info->col_state != HIST_READY) {
		if (hist_info->col_state != HIST_READY &&
				hist_info->col_state != HIST_UNKNOWN) {
			ret = -ENODATA;
			hist_info->col_state = HIST_READY;
			pr_debug("%s: state is not ready: %d",