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

Commit ceb6488f authored by Chandan Uddaraju's avatar Chandan Uddaraju Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: configure clk_lane_cnt variable for recovery failure



The clk_lane_cnt variable is not reset when frame transfer timeout
happens. Due to this, the clk_lane_cnt is only incremented and never
decremented during this race condition. Fix this by resetting the
clk_lane_cnt variable when recovery failure happens.

Change-Id: Id6254c68e6f04b75ad4709c04087ef729679ff8f
Signed-off-by: default avatarChandan Uddaraju <chandanu@codeaurora.org>
parent f1637604
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -505,7 +505,8 @@ static void mdss_dsi_wait_clk_lane_to_stop(struct mdss_dsi_ctrl_pdata *ctrl)

	if (mdss_dsi_poll_clk_lane(ctrl) == false)
		pr_err("%s: clk lane recovery failed\n", __func__);

	else
		ctrl->clk_lane_cnt = 0;
	/* clear clk lane tx stop -- bit 20 */
	mdss_dsi_cfg_lane_ctrl(ctrl, BIT(20), 0);
}