mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHv2] wifi: ath11k: mark reset srng lists as uninitialized
@ 2025-05-29  3:56 Sergey Senozhatsky
  2025-06-11  4:37 ` Sergey Senozhatsky
  2025-06-12  3:30 ` Baochen Qiang
  0 siblings, 2 replies; 14+ messages in thread
From: Sergey Senozhatsky @ 2025-05-29  3:56 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: linux-wireless, ath11k, linux-kernel, Sergey Senozhatsky

ath11k_hal_srng_deinit() frees rdp and wrp which are used
by srng lists.  Mark srng lists as not-initialized.  This
makes sense, for instance, when device fails to resume
and the driver calls ath11k_hal_srng_deinit() from
ath11k_core_reconfigure_on_crash().

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---

v2: fixed subject line and updated commit message

 drivers/net/wireless/ath/ath11k/hal.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/ath/ath11k/hal.c b/drivers/net/wireless/ath/ath11k/hal.c
index 8cb1505a5a0c..cab11a35f911 100644
--- a/drivers/net/wireless/ath/ath11k/hal.c
+++ b/drivers/net/wireless/ath/ath11k/hal.c
@@ -1346,6 +1346,10 @@ EXPORT_SYMBOL(ath11k_hal_srng_init);
 void ath11k_hal_srng_deinit(struct ath11k_base *ab)
 {
 	struct ath11k_hal *hal = &ab->hal;
+	int i;
+
+	for (i = 0; i < HAL_SRNG_RING_ID_MAX; i++)
+		ab->hal.srng_list[i].initialized = 0;
 
 	ath11k_hal_unregister_srng_key(ab);
 	ath11k_hal_free_cont_rdp(ab);
-- 
2.49.0.1204.g71687c7c1d-goog


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

end of thread, other threads:[~2025-06-12 10:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-29  3:56 [PATCHv2] wifi: ath11k: mark reset srng lists as uninitialized Sergey Senozhatsky
2025-06-11  4:37 ` Sergey Senozhatsky
2025-06-12  3:30 ` Baochen Qiang
2025-06-12  5:04   ` Sergey Senozhatsky
2025-06-12  5:47     ` Baochen Qiang
2025-06-12  7:02       ` Sergey Senozhatsky
2025-06-12  7:49         ` Baochen Qiang
2025-06-12  8:00           ` Sergey Senozhatsky
2025-06-12  8:14             ` Baochen Qiang
2025-06-12  8:31               ` Sergey Senozhatsky
2025-06-12  8:36                 ` Baochen Qiang
2025-06-12  8:01     ` Baochen Qiang
2025-06-12 10:01       ` Pedro Falcato
2025-06-12 10:23         ` Baochen Qiang

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

all inboxes | Powered by JetHome®