brcmfmac: support repeated brcmf_fw_alloc_request() calls
authorRafał Miłecki <rafal@milecki.pl>
Tue, 26 Feb 2019 13:11:16 +0000 (14:11 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 4 Apr 2019 10:00:11 +0000 (13:00 +0300)
commitc9692820710f57c826b2e43a6fb1e4cd307508b0
tree916bed06f5ba2386fa537e2107496302f62afb12
parentb63967cae6b105a3e0e31bff6c5ec89faa077ee5
brcmfmac: support repeated brcmf_fw_alloc_request() calls

During a normal brcmfmac lifetime brcmf_fw_alloc_request() is called
once only during the probe. It's safe to assume provided array is clear.

Further brcmfmac improvements may require calling it multiple times
though. This patch allows it by fixing invalid firmware paths like:
brcm/brcmfmac4366c-pcie.binbrcm/brcmfmac4366c-pcie.bin

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c