]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: introduce ath12k_hw_warn()
authorKalle Valo <quic_kvalo@quicinc.com>
Fri, 1 Nov 2024 15:17:01 +0000 (17:17 +0200)
committerJeff Johnson <quic_jjohnson@quicinc.com>
Wed, 6 Nov 2024 19:36:28 +0000 (11:36 -0800)
commita2189d2b8005cd9f3a440512af087eb9b62c103e
tree7f6436189d5efcb7989573d54db01159da2976d4
parentc8a98ed160e54ae629364a1efd5379bed839d633
wifi: ath12k: introduce ath12k_hw_warn()

In the following patch we need to use ath12k_warn() but don't easily have
access to struct ath12k_base (ab) but do have access to struct ath12k_hw (ah).
So add a new warning helper ath12_hw_warn() which takes the latter but the log
output is still identical but uses the struct device pointer stored to struct
ath12k_hw.

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>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://patch.msgid.link/20241101151705.165987-5-kvalo@kernel.org
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/debug.c
drivers/net/wireless/ath/ath12k/debug.h
drivers/net/wireless/ath/ath12k/mac.c