brcmfmac: add credit numbers updating support
authorWright Feng <Wright.Feng@cypress.com>
Mon, 5 Nov 2018 05:51:54 +0000 (05:51 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Dec 2018 14:56:24 +0000 (16:56 +0200)
commit153e22c0ff1260035cd7fe72c8aeead1f5fac757
tree48373553d3c55e3b4bee698feea8e6b146ef3b48
parented0b2b067bad9d923842ac4c68c6b652b5885b84
brcmfmac: add credit numbers updating support

The credit numbers are static and tunable per chip in firmware side.
However the credit number may be changed that is based on packet pool
length and will send BRCMF_E_FIFO_CREDIT_MAP event to notify host driver
updates the credit numbers during interface up.
The purpose of this patch is making host driver has ability of updating
the credit numbers when receiving the BRCMF_E_FIFO_CREDIT_MAP event.

Signed-off-by: Wright Feng <wright.feng@cypress.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c