]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ath10k: fetch firmware images in a loop
authorErik Stromdahl <erik.stromdahl@gmail.com>
Mon, 13 Feb 2017 10:38:40 +0000 (12:38 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 14 Feb 2017 17:52:25 +0000 (19:52 +0200)
commit1c61bedc0a725f0b019a70bba07cb2cf05c4ae2a
treebfeebfbaacd3f73a79a45ef32e12a342884c38b7
parent1427228d5869f5804b03d47acfa4a88122572a78
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>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/hw.h