Commit 0b3117e4 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau
Browse files

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: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 044a4325
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -321,6 +321,8 @@ static int mt7615_mcu_send_firmware(struct mt7615_dev *dev, const void *data,

		data += cur_len;
		len -= cur_len;

		if (mt76_is_mmio(&dev->mt76))
			mt76_queue_tx_cleanup(dev, MT_TXQ_FWDL, false);
	}