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

Commit 4a94d5bb authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: fix the sui in-progress check



Check the intermediate and changed smmu state,
while determining if secure display session is
in progress to give the correct state information.

Change-Id: I662f50c7f74c5f0f8b5f61aee51e4b115f14b350
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent fc04d93a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -374,7 +374,8 @@ static inline bool sde_kms_is_secure_session_inprogress(struct sde_kms *sde_kms)
		return false;

	mutex_lock(&sde_kms->secure_transition_lock);
	if (sde_kms->smmu_state.state == DETACHED)
	if ((sde_kms->smmu_state.state == DETACHED)
		|| (sde_kms->smmu_state.state == DETACH_ALL_REQ))
		ret = true;
	mutex_unlock(&sde_kms->secure_transition_lock);