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

Commit 69dcfd55 authored by Krishna Chaitanya Parimi's avatar Krishna Chaitanya Parimi Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: do not wait for histogram kick start for hist v2



For histogram v2 block there is no need to have an explicit
kickoff of histogram. An enable automatically keeps reading
the histogram and there is no reset state for waiting.

Now there will be no wait for first kickoff.

Change-Id: I722d57ff0102d93133a310744b39bc4c81eb69ed
Signed-off-by: default avatarKrishna Chaitanya Parimi <cparimi@codeaurora.org>
parent 2a7967de
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -3829,7 +3829,7 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
				struct pp_hist_col_info *hist_info,
				struct pp_hist_col_info *hist_info,
				char __iomem *ctl_base, u32 expect_sum)
				char __iomem *ctl_base, u32 expect_sum)
{
{
	int kick_ret, wait_ret, ret = 0;
	int kick_ret = 1, wait_ret, ret = 0;
	u32 timeout, sum;
	u32 timeout, sum;
	char __iomem *v_base;
	char __iomem *v_base;
	unsigned long flag;
	unsigned long flag;
@@ -3861,6 +3861,7 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
			pipe = container_of(res, struct mdss_mdp_pipe, pp_res);
			pipe = container_of(res, struct mdss_mdp_pipe, pp_res);
			pipe->params_changed++;
			pipe->params_changed++;
		}
		}
		if (!is_hist_v2)
			kick_ret = wait_for_completion_killable_timeout(
			kick_ret = wait_for_completion_killable_timeout(
				&(hist_info->first_kick), timeout /
				&(hist_info->first_kick), timeout /
					HIST_KICKOFF_WAIT_FRACTION);
					HIST_KICKOFF_WAIT_FRACTION);