]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: add string type to search board data in board-2.bin for WCN6855
authorWen Gong <quic_wgong@quicinc.com>
Mon, 15 Nov 2021 09:29:55 +0000 (11:29 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 17 Nov 2021 07:30:34 +0000 (09:30 +0200)
commit48f214fb680e28ed6e6dba83702a784a6a7931f8
treeb78ee2eaf96b3afa21037f992cf63cdd8bc012cb
parent9b45e8a0f9475cb218926199aec5297adb135dfb
ath11k: add string type to search board data in board-2.bin for WCN6855

Currently ath11k only support string type with bus, chip id and board id
such as "bus=ahb,qmi-chip-id=1,qmi-board-id=4" for ahb bus chip and
"bus=pci,qmi-chip-id=0,qmi-board-id=255" for PCIe bus chip in
board-2.bin. For WCN6855, it is not enough to distinguish all different
chips.

This is to add a new string type which include bus, chip id, board id,
vendor, device, subsystem-vendor and subsystem-device for WCN6855.

ath11k will first load board-2.bin and search in it for the board data
with the above parameters, if matched one board data, then download it
to firmware, if not matched any one, then ath11k will download the file
board.bin to firmware.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211111065340.20187-1-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/pci.c