mirror of
https://github.com/torvalds/linux.git
synced 2026-10-08 11:36:02 +02:00
wifi: mt76: mt792x: add tx_done ring to common DMA queue allocation
Add a tx_done field to mt792x_dma_layout and extend mt792x_dma_alloc_queues() to allocate the MT_RXQ_MCU_WA queue when tx_done.ring_base is configured. This is a preparation patch before enabling MT7928 PCIe support. Signed-off-by: Emery Hsin <emery.hsin@mediatek.com> Link: https://patch.msgid.link/20260612075136.2577553-5-jb.tsai@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
3422e61141
commit
78ff45f849
|
|
@ -217,6 +217,7 @@ struct mt792x_dma_layout {
|
|||
struct mt792x_dma_ring tx_data0;
|
||||
struct mt792x_dma_ring tx_mcu;
|
||||
struct mt792x_dma_ring tx_fwdl;
|
||||
struct mt792x_dma_ring tx_done;
|
||||
struct mt792x_dma_ring rx_data;
|
||||
struct mt792x_dma_ring rx_mcu;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -122,6 +122,17 @@ int mt792x_dma_alloc_queues(struct mt792x_dev *dev,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* tx done */
|
||||
if (layout->tx_done.ring_base) {
|
||||
ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU_WA],
|
||||
layout->tx_done.qid,
|
||||
layout->tx_done.n_desc,
|
||||
MT_RX_BUF_SIZE,
|
||||
layout->tx_done.ring_base);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* rx event */
|
||||
ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU],
|
||||
layout->rx_mcu.qid,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user