• Daniel Mack's avatar
    wcn36xx: clear all masks in RX interrupt · edd23ab4
    Daniel Mack authored
    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: default avatarDaniel Mack <daniel@zonque.org>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    edd23ab4
dxe.c 24.4 KB