wifi: brcmfmac: chip: Handle 1024-unit sizes for TCM blocks
authorHector Martin <marcan@marcan.st>
Tue, 14 Feb 2023 09:24:15 +0000 (18:24 +0900)
committerKalle Valo <kvalo@kernel.org>
Mon, 27 Feb 2023 14:59:34 +0000 (16:59 +0200)
commit098e0b105ce1047ad9984dc79287573e313b1232
treef9b8a14544ff037f5d6fc493f5f7107bce7aeb1b
parent3c7c07ca7ab144ef25402858078b27806322b752
wifi: brcmfmac: chip: Handle 1024-unit sizes for TCM blocks

BCM4387 has trailing odd-sized blocks as part of TCM which have
their size described as a multiple of 1024 instead of 8192. Handle this
so we can compute the TCM size properly.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230214092423.15175-2-marcan@marcan.st
drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c