]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: support loading ELF board files
authorBen Greear <greearb@candelatech.com>
Tue, 29 Sep 2020 17:15:29 +0000 (20:15 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Oct 2020 19:30:53 +0000 (22:30 +0300)
commitbbfe967694e4cbe9cb79233437ce46f9954bcf5d
treed1020bf68b94ade3d24d0bdc54222992ec13e373
parent82c05a6f205f1a4f02d0dd31864c850c63af6cc0
ath11k: support loading ELF board files

The QCA6390 board I have, model 8291M-PR comes with an ELF board file.  To get
this to at least somewhat work, I renamed bdwlan.e04 to 'board.bin' and then
added this patch to check for ELF magic string in the beginning of the file.
If that is found, use type ELF.  After this the driver loads.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Ben Greear <greearb@candelatech.com>
[kvalo@codeaurora.org: use elf.h, minor cleanup]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1601399736-3210-2-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/qmi.c