]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: ath12k: convert struct ath12k::wmi_mgmt_tx_work to struct wiphy_work
authorKalle Valo <quic_kvalo@quicinc.com>
Tue, 26 Nov 2024 17:11:30 +0000 (19:11 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 29 Nov 2024 11:17:44 +0000 (13:17 +0200)
commit56dcbf0b520796e26b2bbe5686bdd305ad924954
tree0d9067280f2e300633720c26ac5e7df4d43fb1f4
parent63fdb90642eec9439dd13c93c4b5c184b60a50cd
wifi: ath12k: convert struct ath12k::wmi_mgmt_tx_work to struct wiphy_work

To simplify locking for the next patches convert struct
ath12k::wmi_mgmt_tx_work to use wiphy_work. After this
ath12k_mgmt_over_wmi_tx_work() is called with wiphy_lock() taken. In
ath12k_core_suspend() we need to take wiphy_lock() because
ath12k_mac_wait_tx_complete() requires it.

Also add lockdep_assert_wiphy() to document when wiphy_lock() is held.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20241126171139.2350704-2-kvalo@kernel.org
drivers/net/wireless/ath/ath12k/core.c
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/mac.c