MLK-18675-11 brcmfmac: 43012 Update F2 Watermark to 0x60 to fix DMA Error during...
authorNaveen <nagu@cypress.com>
Thu, 4 Jan 2018 06:04:15 +0000 (11:34 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitbe31a53fe255a8f7dc8116eba4c2184497ca160d
tree1464650909eeaa168b7ab01e962ddfc03d14b73c
parent8ac7df9fba288b1d90eca9273b35d4ff657d8b37
MLK-18675-11 brcmfmac: 43012 Update F2 Watermark to 0x60 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.

Signed-off-by: Naveen Gupta <nagu@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c