wifi: mt76: reduce spin_lock_bh held up in mt76_dma_rx_cleanup
authorSean Wang <sean.wang@mediatek.com>
Tue, 26 Sep 2023 22:20:25 +0000 (06:20 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 30 Sep 2023 18:17:18 +0000 (20:17 +0200)
commitef444ad00474bc5ebbcd4f6a2ea87f6fbe7977ce
tree06c5fa12b836135bc27038be6efaedf69412e778
parent9585316a2aaf773a67846bdc8bbdd4df1e9622fa
wifi: mt76: reduce spin_lock_bh held up in mt76_dma_rx_cleanup

mt76_dma_rx_cleanup would be frequenetly called up to reset the dma rings
to be freshed as new ones when switching back from the deep sleep mode to
the active mode on mt7921 and mt7922.

Shrink the scope of spin_lock_bh in mt76_dma_rx_cleanup being held up
to allow the kernel scheduler to be able to switch other tasks in time
by reducing the latency.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c