]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: fix per pdev debugfs registration
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Tue, 11 Jun 2024 06:42:32 +0000 (09:42 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 11 Jun 2024 18:44:18 +0000 (21:44 +0300)
commit8dd65ccbdf91e2fe3ab6e4da158b38f81746c3b4
treec48eea0742b1e335db58be94d86197ba97985aec
parentd2b0ca38d362ebf16ca79cd7f309d5bb8b581deb
wifi: ath12k: fix per pdev debugfs registration

Function ath12k_debugfs_register() is called once inside the function
ath12k_mac_hw_register(). However, with single wiphy model, there could
be multiple pdevs registered under single hardware. Hence, need to register
debugfs for each one of them.

Move the caller inside the loop which iterates over all underlying pdevs.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Fixes: f8bde02a26b9 ("wifi: ath12k: initial debugfs support")
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240529043043.2488031-2-quic_adisi@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c