diff options
author | Erik Stromdahl | 2017-02-13 11:38:40 +0100 |
---|---|---|
committer | Kalle Valo | 2017-02-14 18:52:25 +0100 |
commit | 1c61bedc0a725f0b019a70bba07cb2cf05c4ae2a (patch) | |
tree | bfeebfbaacd3f73a79a45ef32e12a342884c38b7 /drivers/net/wireless/ath/ath10k/hw.h | |
parent | ath10k: fix napi crash during rmmod when probe firmware fails (diff) | |
download | kernel-qcow2-linux-1c61bedc0a725f0b019a70bba07cb2cf05c4ae2a.tar.gz kernel-qcow2-linux-1c61bedc0a725f0b019a70bba07cb2cf05c4ae2a.tar.xz kernel-qcow2-linux-1c61bedc0a725f0b019a70bba07cb2cf05c4ae2a.zip |
ath10k: fetch firmware images in a loop
To make it easier to handle minimum and maximum firmware API numbers convert
the firmware fetch functionality to a loop. If no firmware image is found print
an error with minimum and maximum API numbers and the name of firmware
directory. This is needed when we switch to using request_firmware_direct()
which doesn't print any errors anymore.
Also add a new function for creating the fw file name dynamically which makes it
easier to add new bus support, for example SDIO and USB, later.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
[kvalo@qca.qualcomm.com: remove sdio/usb part, new error message, clarify commit log]
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/hw.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index 38aa7c95732e..f0fda0f2b3b4 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -128,6 +128,10 @@ enum qca9377_chip_id_rev { #define QCA4019_HW_1_0_BOARD_DATA_FILE "board.bin" #define QCA4019_HW_1_0_PATCH_LOAD_ADDR 0x1234 +#define ATH10K_FW_FILE_BASE "firmware" +#define ATH10K_FW_API_MAX 5 +#define ATH10K_FW_API_MIN 2 + #define ATH10K_FW_API2_FILE "firmware-2.bin" #define ATH10K_FW_API3_FILE "firmware-3.bin" |