]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
brcmfmac: update 43012 F2 watermark setting to fix DMA Error during UDP RX Traffic
authorNaveen Gupta <naveen.gupta@cypress.com>
Wed, 21 Nov 2018 07:53:49 +0000 (07:53 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Dec 2018 14:57:22 +0000 (16:57 +0200)
commitf95a8d9c6aca196f1ace5b2e53a3dd3bc491b1b3
tree5490cad4611d8b312aafc22a08e352ce652d070b
parentb021a6bc1175442609af0b66d64f850883e155fb
brcmfmac: update 43012 F2 watermark setting to fix DMA Error during UDP RX Traffic

The number of words that the read FIFO has to contain except
the end of frame before sends data back to the host.
Max watermark = (512B - 2* (BurstLength))/4 =
(512 - 128)/4 = 384/4 = 0x60
so if burst length (i.e. BurstLength = 64) is increased,
watermark has to be reduced. This is the optimal setting for this chip.

Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Naveen Gupta <naveen.gupta@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c