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

Commit f2fc1fe4 authored by Xiaoming Zhou's avatar Xiaoming Zhou
Browse files

msm: mdss: disable dsi status check when display is off



There was some racing condition where the dsi status check
thread is called when the display is off.   This makes sure
the dsi status check is not invoked when display is off.

Change-Id: I6865abe23ca7adf918a19499d3839d6664fc29fc
Signed-off-by: default avatarXiaoming Zhou <zhoux@codeaurora.org>
parent 648cfa62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ void mdss_check_dsi_ctrl_status(struct work_struct *work, uint32_t interval)
		mutex_lock(ctl->shared_lock);
	mutex_lock(&mdp5_data->ov_lock);

	if (pstatus_data->mfd->shutdown_pending) {
	if (mdss_panel_is_power_off(pstatus_data->mfd->panel_power_state)) {
		mutex_unlock(&mdp5_data->ov_lock);
		if (ctl->shared_lock)
			mutex_unlock(ctl->shared_lock);
+5 −0
Original line number Diff line number Diff line
@@ -60,6 +60,11 @@ static void check_dsi_ctrl_status(struct work_struct *work)
		return;
	}

	if (mdss_panel_is_power_off(pdsi_status->mfd->panel_power_state)) {
		pr_err("%s: panel off\n", __func__);
		return;
	}

	pdsi_status->mfd->mdp.check_dsi_status(work, interval);
}