]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix rx dma ring descriptor state on reset
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Dec 2019 16:32:41 +0000 (17:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:00 +0000 (10:06 +0100)
commitd5e19a2a21e698c5cc8a55e376c5418b8984a18c
tree2a5dbfe56e0073c6464b5a30e242f794e7dbfcee
parent999c3669d4d01a220457fc4df87a8bd9a190ed35
mt76: fix rx dma ring descriptor state on reset

To avoid having the hardware potentially write to memory behind stale
descriptors, set the dma-done flag on all of them before cleaning up
allocated rx buffers

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