]> 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)
commitfa4f3e5338b0fc2fc19b7794e11b344392569d57
treed1020bf68b94ade3d24d0bdc54222992ec13e373
parent6d89ac78534a6780664737dab1259b01b7c7e1f2
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