]> asedeno.scripts.mit.edu Git - linux.git/commit
wcn36xx: clear all masks in RX interrupt
authorDaniel Mack <daniel@zonque.org>
Wed, 23 May 2018 08:14:35 +0000 (11:14 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 25 May 2018 10:07:25 +0000 (13:07 +0300)
commitedd23ab403cf092a20ea185770f197f502ac32f0
tree5f300e9ec5ddcd645d0bf09fb8634e91c6c1d6b6
parentba437e72378c91a2fd6766014cc02fa98b61f2dc
wcn36xx: clear all masks in RX interrupt

Like on the TX side, check for the interrupt reason when the RX interrupt
is latched and clear the ERR, DONE and ED masks.

This seems to help with connection timeouts and network stream
starvatations. And FWIW, the downstream driver does the same thing.

Note that in analogy to the TX side, WCN36XX_DXE_0_INT_CLR should be set to
WCN36XX_INT_MASK_CHAN_RX_{L,H} rather than WCN36XX_DXE_INT_CH{1,3}_MASK. It
did the right thing however, as the defines happen to have identical values.

Also, instead of determining register addresses and values inside
wcn36xx_rx_handle_packets(), pass them as arguments.

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