mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt76u: add mt76_queue to mt76u_get_next_rx_entry signature
Rely on mt76_queue pointer in mt76u_get_next_rx_entry in order to add support for new devices (e.g 7663u) that reports fw events through hw rx mcu queue Co-developed-by: Sean Wang <[email protected]> Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a5dca118bf
commit
06caaf0d33
@@ -398,10 +398,9 @@ mt76u_fill_bulk_urb(struct mt76_dev *dev, int dir, int index,
|
||||
urb->context = context;
|
||||
}
|
||||
|
||||
static inline struct urb *
|
||||
mt76u_get_next_rx_entry(struct mt76_dev *dev)
|
||||
static struct urb *
|
||||
mt76u_get_next_rx_entry(struct mt76_queue *q)
|
||||
{
|
||||
struct mt76_queue *q = &dev->q_rx[MT_RXQ_MAIN];
|
||||
struct urb *urb = NULL;
|
||||
unsigned long flags;
|
||||
|
||||
@@ -553,7 +552,7 @@ mt76u_process_rx_queue(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
int err, count;
|
||||
|
||||
while (true) {
|
||||
urb = mt76u_get_next_rx_entry(dev);
|
||||
urb = mt76u_get_next_rx_entry(q);
|
||||
if (!urb)
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user