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

Commit 0a344186 authored by Ajay Singh Parmar's avatar Ajay Singh Parmar Committed by Ashwini Muduganti
Browse files

drm/msm/dp: check for aborted flag before controller power on



In case the abort flag has been set, do not proceed with controller
power on. Abort flag could mean that host has been de-initialized.
Powering controller in that condition could result in unstable system.
Avoid this by taking no action if abort flag has been set and return
with proper error code.

CRs-Fixed: 2338231
Change-Id: I95438e43060decb256039555957eb54f08edbc3d
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent c256319f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1112,6 +1112,11 @@ static int dp_ctrl_on(struct dp_ctrl *dp_ctrl, bool mst_mode, bool shallow)
	if (ctrl->power_on)
		goto end;

	if (atomic_read(&ctrl->aborted)) {
		rc = -EPERM;
		goto end;
	}

	ctrl->mst_mode = mst_mode;
	rate = ctrl->panel->link_info.rate;