Skip to contentSkip to conversation

ath11k: fix mutex definition without comment warning

PATCH In review Karthikeyan Periyasamy 2 participants 2 messages Jun 25, 2019 – Jun 26, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix mutex definition without comment warning

drivers/net/wireless/ath/ath11k/core.h:446: struct mutex definition without comment drivers/net/wireless/ath/ath11k/core.h:447: spinlock_t definition without comment drivers/net/wireless/ath/ath11k/core.h:478: spinlock_t definition without comment

---
 drivers/net/wireless/ath/ath11k/core.h | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/net/wireless/ath/ath11k/core.h +9 -0
index 65c1a6d..e5b1747 100644
@@ -443,8 +443,16 @@ struct ath11k {
 	u32 num_stations;
 	u32 max_num_stations;
 	bool monitor_present;
+	/* To synchronize concurrent synchronous mac80211 callback operations,
+	 * concurrent debugfs configuration and concurrent FW statistics events.
+	 */
 	struct mutex conf_mutex;
+	/* protects the radio specific data like debug stats, ppdu_stats_info stats,
+	 * vdev_stop_status info, scan data, ath11k_sta info, ath11k_vif info,
+	 * channel context data, survey info, test mode data.
+	 */
 	spinlock_t data_lock;
+
 	struct list_head arvifs;
 	/* should never be NULL; needed for regular htt rx */
 	struct ieee80211_channel *rx_channel;
@@ -475,6 +483,7 @@ struct ath11k {
 	u32 num_created_vdevs;
 
 	struct idr txmgmt_idr;
+	/* protects txmgmt_idr data */
 	spinlock_t txmgmt_idr_lock;
 
 	/* cycle count is reported twice for each visited channel during scan.
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 6 lines · Karthikeyan Periyasamy

drivers/net/wireless/ath/ath11k/core.h:446: struct mutex definition without comment drivers/net/wireless/ath/ath11k/core.h:447: spinlock_t definition without comment drivers/net/wireless/ath/ath11k/core.h:478: spinlock_t definition without comment

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

5896237bc839 ath11k: fix mutex definition without comment warning

Signature · 9 lines
https://patchwork.kernel.org/patch/11015179/

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


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k