brcmfmac: use device memsize config from fw if defined
authorHante Meuleman <meuleman@broadcom.com>
Wed, 17 Feb 2016 10:26:57 +0000 (11:26 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 7 Mar 2016 12:14:50 +0000 (14:14 +0200)
commit6ac27689b01e23e21f08d6f55d23a94eb10a8efc
tree790f7f7cfc2c7fbb4f08edf61266cba53812977b
parentcd2bc19c61b2da81ce310edb20f98e51fa7a5889
brcmfmac: use device memsize config from fw if defined

Newer type pcie devices have memory which get shared between fw and
hw. The division of this memory is done firmware compile time. As a
result the ramsize as used by driver needs to be adjusted for this.
This is done by reading the memory size from the firmware.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c