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

Commit c3682268 authored by Ashish Garg's avatar Ashish Garg
Browse files

msm: mdss: Check htotal for calculating programmable fetch



For calculating programmable fetch values, ensure htotal is
non-zero.

Change-Id: Ib1f32f5f16aa97fb82c13c9020707245177067b9
Signed-off-by: default avatarAshish Garg <ashigarg@codeaurora.org>
parent 998e5be1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1758,6 +1758,7 @@ static void mdss_mdp_handoff_programmable_fetch(struct mdss_mdp_ctl *ctl,
			MDSS_MDP_REG_INTF_HSYNC_CTL) >> 16;
		v_total_handoff = mdp_video_read(ctx,
			MDSS_MDP_REG_INTF_VSYNC_PERIOD_F0)/h_total_handoff;
		if (h_total_handoff)
			pinfo->prg_fet = v_total_handoff -
				((fetch_start_handoff - 1)/h_total_handoff);
		pr_debug("programmable fetch lines %d start:%d\n",