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

Commit 067b3b92 authored by Jeykumar Sankaran's avatar Jeykumar Sankaran
Browse files

drm/msm/sde: fix to unlock mutex on early wakeup



This change unlocks the resource lock mutex while bailing
out on early wakeup event when auto refresh is enabled.

Change-Id: I544e6a2037a4d37d33c37beb5f015916e19c2695
Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
parent 4867091e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <robdclark@gmail.com>
 *
@@ -2257,7 +2257,7 @@ static int sde_encoder_resource_control(struct drm_encoder *drm_enc,
			if (autorefresh_enabled) {
				SDE_DEBUG_ENC(sde_enc,
					"not handling early wakeup since auto refresh is enabled\n");
				mutex_lock(&sde_enc->rc_lock);
				mutex_unlock(&sde_enc->rc_lock);
				return 0;
			}