diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2020-01-15 11:58:53 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-02-14 10:06:05 +0100 |
commit | 94e1cfa890b74ee37ea80af76da704775b202b4b (patch) | |
tree | 5a4f2e77957017581e5d3e45efbb8a19d0f309b4 /drivers/net/wireless/mediatek/mt76/usb.c | |
parent | mt76: mt76u: resume all rx queue in mt76u_resume_rx (diff) | |
download | linux-94e1cfa890b74ee37ea80af76da704775b202b4b.tar.xz linux-94e1cfa890b74ee37ea80af76da704775b202b4b.zip |
mt76: mt76u: introduce mt76u_alloc_mcu_queue utility routine
Add mt76u_alloc_mcu_queue utility routine to allocate mcu hw rx queue.
This is a preliminary patch to support new devices (e.g. mt7663u) that
rely on a hw queue for mcu messages
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/usb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c index d85268c6df70..4e0a115c6fd2 100644 --- a/drivers/net/wireless/mediatek/mt76/usb.c +++ b/drivers/net/wireless/mediatek/mt76/usb.c @@ -629,6 +629,12 @@ mt76u_alloc_rx_queue(struct mt76_dev *dev, enum mt76_rxq_id qid) return mt76u_submit_rx_buffers(dev, qid); } +int mt76u_alloc_mcu_queue(struct mt76_dev *dev) +{ + return mt76u_alloc_rx_queue(dev, MT_RXQ_MCU); +} +EXPORT_SYMBOL_GPL(mt76u_alloc_mcu_queue); + static void mt76u_free_rx_queue(struct mt76_dev *dev, struct mt76_queue *q) { |