• Felix Fietkau's avatar
    ath9k: fix stopping tx dma on reset · 0d51cccc
    Felix Fietkau authored
    In some situations, stopping Tx DMA frequently fails, leading to messages
    like this:
    
    ath: Failed to stop TX DMA in 100 msec after killing last frame
    ath: Failed to stop TX DMA!
    
    This patch uses a few MAC features to abort DMA globally instead of iterating
    over all hardware queues and attempting to stop them individually.
    Not only is that faster and works with a shorter timeout, it also makes the
    process much more reliable.
    
    With this change, I can no longer trigger these messages on AR9380,
    and on AR9280 they become much more rare.
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    0d51cccc
mac.c 27.4 KB