ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath11k: unlock mutex during failure in qmi fw ready
@ 2019-10-31 12:25 Govindaraj Saminathan
  2019-11-11 14:00 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Govindaraj Saminathan @ 2019-10-31 12:25 UTC (permalink / raw)
  To: ath11k; +Cc: Govindaraj Saminathan

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(+)

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;
 }
 
-- 
1.9.1


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath11k: unlock mutex during failure in qmi fw ready
  2019-10-31 12:25 [PATCH] ath11k: unlock mutex during failure in qmi fw ready Govindaraj Saminathan
@ 2019-11-11 14:00 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-11-11 14:00 UTC (permalink / raw)
  To: Govindaraj Saminathan; +Cc: ath11k

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

-- 
https://patchwork.kernel.org/patch/11221153/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-11 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31 12:25 [PATCH] ath11k: unlock mutex during failure in qmi fw ready Govindaraj Saminathan
2019-11-11 14:00 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox