brcmfmac: fix regression in parsing NVRAM for multiple devices
authorRafał Miłecki <rafal@milecki.pl>
Sun, 22 Jul 2018 21:46:25 +0000 (23:46 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 25 Jul 2018 07:30:36 +0000 (10:30 +0300)
commit299b6365a3b7cf7f5ea1c945a420e9ee4841d6f7
tree2496077389f50eb2edee56918009054dcf9e0349
parent0a5257bc6d89c2ae69b9bf955679cb4f89261874
brcmfmac: fix regression in parsing NVRAM for multiple devices

NVRAM is designed to work with Broadcom's SDK Linux kernel which fakes
PCI domain 0 for all internal MMIO devices. Since official Linux kernel
uses platform devices for that purpose there is a mismatch in numbering
PCI domains.

There used to be a fix for that problem but it was accidentally dropped
during the last firmware loading rework. That resulted in brcmfmac not
being able to extract device specific NVRAM content and all kind of
calibration problems.

Reported-by: Aditya Xavier <adityaxavier@gmail.com>
Fixes: 2baa3aaee27f ("brcmfmac: introduce brcmf_fw_alloc_request() function")
Cc: stable@vger.kernel.org # v4.17+
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c