brcmfmac: chip: Handle 1024-unit sizes for TCM blocks
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:14:59 +0000 (17:14 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:44:58 +0000 (10:44 -0700)
commit2da07639721a43849ac00a8934bcc2964516310d
treed234a249b90177943ecc31371f16fa16ea8736a8
parenteba8b2587017a48137679219a91e8658560d8ac4
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>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c