mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt7603: mac: fix logic in mt7603_tx_hang()
Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
3c4c9a647e
commit
cb83f3329f
+3
-3
@@ -1210,9 +1210,9 @@ static bool mt7603_tx_hang(struct mt7603_dev *dev)
|
||||
prev_dma_idx = dev->tx_dma_idx[i];
|
||||
dev->tx_dma_idx[i] = dma_idx = ioread32(&q->regs->dma_idx);
|
||||
|
||||
if (dma_idx != prev_dma_idx ||
|
||||
dma_idx == ioread32(&q->regs->cpu_idx))
|
||||
continue;
|
||||
if (dma_idx == prev_dma_idx &&
|
||||
dma_idx != ioread32(&q->regs->cpu_idx))
|
||||
break;
|
||||
}
|
||||
|
||||
return i < 4;
|
||||
|
||||
Reference in New Issue
Block a user