OSDN Git Service

brcmfmac: Add support for first trying to get a board specific nvram file
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 Oct 2018 11:01:00 +0000 (13:01 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Nov 2018 16:50:15 +0000 (18:50 +0200)
commiteae8e50669e15002b195177212a6e25afbe7cf4d
tree8553540a57bcfd3945c274825c6a9f62cbb768a2
parent5b587496dc63595b71265d986ce69728c2724370
brcmfmac: Add support for first trying to get a board specific nvram file

The nvram files which some brcmfmac chips need are board-specific. To be
able to distribute these as part of linux-firmware, so that devices with
such a wifi chip will work OOTB, multiple (one per board) versions must
co-exist under /lib/firmware.

This commit adds support for callers of the brcmfmac/firmware.c code to
pass in a board_type parameter through the request structure.

If that parameter is set then the code will first try to load
chipmodel.board_type.txt before falling back to the old chipmodel.txt name.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h