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

Commit d8a98377 authored by raghavendra ambadas's avatar raghavendra ambadas
Browse files

msm: mdss: Move mutex lock outside esd status check



Release the mutex immediately after wait for dma done,
this change will make sure there is no wait for commit
thread while esd status check is in progress.

Change-Id: I56a9c0f19d9b026159f1588b32dfd66de74e3020
Signed-off-by: default avatarRaghavendra Ambadas <rambad@codeaurora.org>
parent b2cc7110
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,12 +138,12 @@ void mdp3_check_dsi_ctrl_status(struct work_struct *work,

	if (mdp3_session->wait_for_dma_done)
		ret = mdp3_session->wait_for_dma_done(mdp3_session);
	mutex_unlock(&mdp3_session->lock);

	if (!ret)
		ret = ctrl_pdata->check_status(ctrl_pdata);
	else
		pr_err("%s: wait_for_dma_done error\n", __func__);
	mutex_unlock(&mdp3_session->lock);

	if (mdss_fb_is_power_on_interactive(pdsi_status->mfd)) {
		if (ret > 0)