mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: cleanup fw queue just for mmio devices
In order to reuse mt7615_mcu_send_firmware routine adding support for usb devices, clean fw hw queue just for mmio devices Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
4999db4668
commit
8ce6e40eba
+3
-1
@@ -321,7 +321,9 @@ static int mt7615_mcu_send_firmware(struct mt7615_dev *dev, const void *data,
|
||||
|
||||
data += cur_len;
|
||||
len -= cur_len;
|
||||
mt76_queue_tx_cleanup(dev, MT_TXQ_FWDL, false);
|
||||
|
||||
if (mt76_is_mmio(&dev->mt76))
|
||||
mt76_queue_tx_cleanup(dev, MT_TXQ_FWDL, false);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user