diff mbox series

ath11k: unlock mutex during failure in qmi fw ready

Message ID 1572524747-25843-1-git-send-email-gsamin@codeaurora.org (mailing list archive)
State Accepted
Commit c1283e0e7f1aa852c95f701bdbfb355952478ea7
Delegated to: Kalle Valo
Headers show
Series ath11k: unlock mutex during failure in qmi fw ready | expand

Commit Message

Govindaraj Saminathan Oct. 31, 2019, 12:25 p.m. UTC
qmi firmware ready event start to initialize the core modules and
the sequence executed with mutex lock. In case of any failure
mutex should be unlocked otherwise it will hang during the recovery.

Signed-off-by: Govindaraj Saminathan <gsamin@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Kalle Valo Nov. 11, 2019, 2 p.m. UTC | #1
Govindaraj Saminathan <gsamin@codeaurora.org> wrote:

> qmi firmware ready event start to initialize the core modules and
> the sequence executed with mutex lock. In case of any failure
> mutex should be unlocked otherwise it will hang during the recovery.
> 
> Signed-off-by: Govindaraj Saminathan <gsamin@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath11k-post-bringup branch of ath.git, thanks.

c1283e0e7f1a ath11k: unlock mutex during failure in qmi fw ready
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
index 9324dcb..d2dd0ba 100644
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -531,6 +531,7 @@  int ath11k_core_qmi_firmware_ready(struct ath11k_base *ab)
 	ath11k_core_stop(ab);
 err_dp_free:
 	ath11k_dp_free(ab);
+	mutex_unlock(&ab->core_lock);
 	return ret;
 }