]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: Allow firmware name to be overridden by DT
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 24 Aug 2021 17:12:25 +0000 (10:12 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 29 Aug 2021 07:11:13 +0000 (10:11 +0300)
commitb7f96d5c79cd9584bb1193a3c9008bd1e2683906
tree8153b3d2d41b5ababacf0e1eb465f069f481d50e
parentd195d7aac09bddabc2c8326fb02fcec2b0a2de02
wcn36xx: Allow firmware name to be overridden by DT

The WLAN NV firmware blob differs between platforms, and possibly
devices, so add support in the wcn36xx driver for reading the path of
this file from DT in order to allow these files to live in a generic
file system (or linux-firmware).

For some reason the parent (wcnss_ctrl) also needs to upload this blob,
so rather than specifying the same information in both nodes wcn36xx
reads the string from the parent's of_node.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Tested-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210824171225.686683-1-bjorn.andersson@linaro.org
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c
drivers/net/wireless/ath/wcn36xx/wcn36xx.h