wcn36xx: only handle packets when ED or DONE bit is set
authorDaniel Mack <daniel@zonque.org>
Wed, 23 May 2018 08:14:40 +0000 (11:14 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 25 May 2018 10:07:34 +0000 (13:07 +0300)
commitce1d4be82b1009374f7bea0229fb6758cb1afb84
treeb61f37dd4169ab9bec86b9b50a95569a159f0fda
parentedd23ab403cf092a20ea185770f197f502ac32f0
wcn36xx: only handle packets when ED or DONE bit is set

On RX and TX interrupts, check for the WCN36XX_CH_STAT_INT_ED_MASK or
WCN36XX_CH_STAT_INT_DONE_MASK in the interrupt reason register, and
only handle packets when it is set. This way, reap_tx_dxes() is only
invoked when needed.

This brings the dequeing logic in line with what the prima downstream
driver is doing.

While at it, also log the interrupt reason.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/dxe.c