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

Commit 589017b8 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru
Browse files

msm: mdss: Change wait_for_completion to timeout in MDSS DSI driver



In mdss_dsi_cmd_mdp_busy function in MDSS DSI driver, change the
wait_for_completion to timeout variant. This avoids watchdog
resets during stability tests.

Change-Id: Ia85a5f61300e59382ae8dcf2ca67b5d7285a98e7
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent c21c3baf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1751,7 +1751,9 @@ void mdss_dsi_cmd_mdp_busy(struct mdss_dsi_ctrl_pdata *ctrl)
		/* wait until DMA finishes the current job */
		pr_debug("%s: pending pid=%d\n",
				__func__, current->pid);
		wait_for_completion(&ctrl->mdp_comp);
		if (!wait_for_completion_timeout(&ctrl->mdp_comp,
					msecs_to_jiffies(DMA_TX_TIMEOUT)))
			pr_err("%s: timeout error\n", __func__);
	}
	pr_debug("%s: done pid=%d\n",
				__func__, current->pid);