Commit 1d54bc27 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau

mt76: mt76u: resume all rx queue in mt76u_resume_rx

Resume all possible rx queues after suspend. This is a preliminary patch
to support mt7663u devices
Co-developed-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 87999d4e
......@@ -680,13 +680,24 @@ EXPORT_SYMBOL_GPL(mt76u_stop_rx);
int mt76u_resume_rx(struct mt76_dev *dev)
{
struct mt76_queue *q = &dev->q_rx[MT_RXQ_MAIN];
int i;
struct mt76_queue *q;
int i, j, err;
for (i = 0; i < q->ndesc; i++)
usb_unpoison_urb(q->entry[i].urb);
for (i = 0; i < __MT_RXQ_MAX; i++) {
q = &dev->q_rx[i];
return mt76u_submit_rx_buffers(dev, MT_RXQ_MAIN);
if (!q->ndesc)
continue;
for (j = 0; j < q->ndesc; j++)
usb_unpoison_urb(q->entry[j].urb);
err = mt76u_submit_rx_buffers(dev, i);
if (err < 0)
return err;
}
return 0;
}
EXPORT_SYMBOL_GPL(mt76u_resume_rx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment