]> git.karo-electronics.de Git - linux-beck.git/commit
wlcore: Fix config firmware loading issues
authorTony Lindgren <tony@atomide.com>
Sat, 17 Sep 2016 16:06:32 +0000 (09:06 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 26 Sep 2016 15:13:45 +0000 (18:13 +0300)
commit3e1ac932682b1377ae1c9d6283f0b88e28fb227d
tree053c920890af3a46169510bebf9299d878df2d78
parentc815fdebef444d591f57a1e90dcfa0e2f8112e10
wlcore: Fix config firmware loading issues

Booting multiple wl12xx and wl18xx devices using the same rootfs is
a pain. You currently have to symlink the right nvs file depending
on the wl12xx type.

For example, with wl1271-nvs.bin being a symlink to wl127x-nvs.bin
by default and trying to bring up a wl128x based device:

wlcore: ERROR nvs size is not as expected: 1113 != 912
wlcore: ERROR NVS file is needed during boot
wlcore: ERROR NVS file is needed during boot
wlcore: ERROR firmware boot failed despite 3 retries

Note that wl18xx uses a separate config firmware wl18xx-conf.bin
that can be generated with tools using the following two git repos:

git.ti.com/wilink8-wlan/18xx-ti-utils
git.ti.com/wilink8-wlan/wl18xx_fw

So let's not configure the nvs file for wl18xx as it's not needed
AFAIK. If it turns out that we also need the nvs file for wl18xx,
we can just add it to the config firmware data for wl18xx.

Let's fix the issue by using the chip specific config firmware
data, and make sure we produce understandable warnings if something
is missing.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wlcore/boot.c
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/wlcore_i.h