brcmfmac: fix CLM load error for legacy chips when user helper is enabled
authorWright Feng <wright.feng@cypress.com>
Tue, 16 Jan 2018 09:26:50 +0000 (17:26 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 16 Jan 2018 19:17:32 +0000 (21:17 +0200)
commitcc124d5cc8d81985c3511892d7a6d546552ff754
tree5250ed6453f8ecdca390a8b948f8e3e5687af16d
parent58eae1416b804d900014d84feadda7195007cc30
brcmfmac: fix CLM load error for legacy chips when user helper is enabled

For legacy chips without CLM blob files, kernel with user helper function
returns -EAGAIN when we request_firmware(), and then driver got failed
when bringing up legacy chips. We expect the CLM blob file for legacy chip
is not existence in firmware path, but the -ENOENT error is transferred to
-EAGAIN in firmware_class.c with user helper.
Because of that, we continue with CLM data currently present in firmware
if getting error from doing request_firmware().

Cc: stable@vger.kernel.org # v4.15.y
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c