mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: connac: move tx initialization/cleanup in mt76_connac module
Move mt76_connac_init_tx_queues and mt76_connac_tx_cleanup routines in mt76_connac module. This is a preliminary patch to add mt7990 chipset support. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
d5459efaaf
commit
b8304b456e
+3
-6
@@ -44,7 +44,7 @@ mt7622_init_tx_queues_multi(struct mt7615_dev *dev)
|
||||
static int
|
||||
mt7615_init_tx_queues(struct mt7615_dev *dev)
|
||||
{
|
||||
int ret, i;
|
||||
int ret;
|
||||
|
||||
ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7615_TXQ_FWDL,
|
||||
MT7615_TX_FWDL_RING_SIZE, MT_TX_RING_BASE);
|
||||
@@ -54,14 +54,11 @@ mt7615_init_tx_queues(struct mt7615_dev *dev)
|
||||
if (!is_mt7615(&dev->mt76))
|
||||
return mt7622_init_tx_queues_multi(dev);
|
||||
|
||||
ret = mt76_init_tx_queue(&dev->mphy, 0, 0, MT7615_TX_RING_SIZE,
|
||||
MT_TX_RING_BASE, 0);
|
||||
ret = mt76_connac_init_tx_queues(&dev->mphy, 0, MT7615_TX_RING_SIZE,
|
||||
MT_TX_RING_BASE, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
for (i = 1; i <= MT_TXQ_PSD ; i++)
|
||||
dev->mphy.q_tx[i] = dev->mphy.q_tx[0];
|
||||
|
||||
return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7615_TXQ_MCU,
|
||||
MT7615_TX_MCU_RING_SIZE, MT_TX_RING_BASE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user