]> git.hungrycats.org Git - linux/commit
wifi: mt76: mt792x: factor out common DMA queue allocation
authorSean Wang <sean.wang@mediatek.com>
Sat, 25 Apr 2026 19:50:04 +0000 (14:50 -0500)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jun 2026 10:15:21 +0000 (10:15 +0000)
commit1e570aa871f0ce535770a9390b833dc865c28d59
tree7bf51065022d129abf9e90086732aed6095e7963
parentc08ffdaf32f7b68d81aebf42d5bb222587a35c76
wifi: mt76: mt792x: factor out common DMA queue allocation

The mt792x PCIe DMA setup uses the same standard queue allocation
sequence for data, MCU, firmware download and RX rings.

Factor this part out into a small common helper so later chip support
can reuse the existing flow without duplicating the queue setup logic.

This keeps the common DMA skeleton in one place and makes follow-up
chip-specific DMA changes smaller and easier to review.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20260425195011.790265-15-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt792x.h
drivers/net/wireless/mediatek/mt76/mt792x_dma.c