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

Commit 99372af0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: dp: skip attention requests on disconnect"

parents 3ac7505d 02ad85b5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1437,6 +1437,12 @@ static void dp_display_attention_work(struct work_struct *work)
	mutex_lock(&dp->session_lock);
	SDE_EVT32_EXTERNAL(dp->state);

	if (dp_display_state_is(DP_STATE_ABORTED)) {
		DP_INFO("Hpd off, not handling any attention\n");
		mutex_unlock(&dp->session_lock);
		goto exit;
	}

	if (dp->debug->mst_hpd_sim || !dp_display_state_is(DP_STATE_READY)) {
		mutex_unlock(&dp->session_lock);
		goto mst_attention;
@@ -1528,6 +1534,7 @@ static void dp_display_attention_work(struct work_struct *work)

mst_attention:
	dp_display_mst_attention(dp);
exit:
	SDE_EVT32_EXTERNAL(SDE_EVTLOG_FUNC_EXIT, dp->state);
}