ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] wifi: ath11k: fix data out of sync for channel list for reg update
@ 2025-01-17  6:17 Kang Yang
  2025-01-17  6:17 ` [PATCH v5 1/2] wifi: ath11k: update channel list in reg notifier instead reg worker Kang Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kang Yang @ 2025-01-17  6:17 UTC (permalink / raw)
  To: ath11k; +Cc: linux-wireless, quic_kangyang

Currently there are two threads to updating/fetch data of channel
list, and there are no synchronization for the data, it leads data out
of sync for channel list when doing reg update.

So change the call flow to make sure the fetch data running after the
update data finished, then data of channel list become synchronization.

Note: This patch-set is an old patch-set in public review written by
Wen Gong. Just continue sending it for him.
Link: https://lore.kernel.org/linux-wireless/20230329091235.19500-1-quic_wgong@quicinc.com/

v5: 
    1. rewrite commit message in patch#1.
    2. update copyright in patch#1, #2.
v4:
    1. rewrite commit message in patch#1, #2.
    2. use list_splice_tail_init() to move list entry.
    3. use data_lock instead of adding a new lock.
v3:
    1. rebase on tag ath-202411251703.
    2. add KASAN BUG report in patch #1.
v2:
    1. rewrite commit message for patch #1 and #2.
    2. use a local list without the spinlock held for patch #2.

Wen Gong (2):
  wifi: ath11k: update channel list in reg notifier instead reg worker
  wifi: ath11k: update channel list in worker when wait flag is set

 drivers/net/wireless/ath/ath11k/core.c |   3 +-
 drivers/net/wireless/ath/ath11k/core.h |   7 +-
 drivers/net/wireless/ath/ath11k/mac.c  |  16 +++-
 drivers/net/wireless/ath/ath11k/reg.c  | 107 +++++++++++++++++--------
 drivers/net/wireless/ath/ath11k/reg.h  |   3 +-
 drivers/net/wireless/ath/ath11k/wmi.h  |   3 +-
 6 files changed, 100 insertions(+), 39 deletions(-)


base-commit: d7bef42fc98f2d8f67546d1ea1a3f2c2932fd72b
-- 
2.34.1



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

end of thread, other threads:[~2025-02-06  0:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-17  6:17 [PATCH v5 0/2] wifi: ath11k: fix data out of sync for channel list for reg update Kang Yang
2025-01-17  6:17 ` [PATCH v5 1/2] wifi: ath11k: update channel list in reg notifier instead reg worker Kang Yang
2025-01-21  9:03   ` Aditya Kumar Singh
2025-01-17  6:17 ` [PATCH v5 2/2] wifi: ath11k: update channel list in worker when wait flag is set Kang Yang
2025-01-21  9:03   ` Aditya Kumar Singh
2025-01-21  8:00 ` [PATCH v5 0/2] wifi: ath11k: fix data out of sync for channel list for reg update Kang Yang
2025-02-05  1:44   ` Jeff Johnson
2025-02-06  0:16 ` Jeff Johnson

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