From: Murad Dadashev via B4 Relay <devnull+llamapersonaltv.gmail.com@kernel.org>
To: Felix Fietkau <nbd@nbd.name>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Ryder Lee <ryder.lee@mediatek.com>,
Shayne Chen <shayne.chen@mediatek.com>,
Sean Wang <sean.wang@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
Murad Dadashev <llamapersonaltv@gmail.com>
Subject: [PATCH 08/10] wifi: mt76: usb: add MT7603 queue mapping
Date: Fri, 27 Nov 2026 11:35:19 +0300 [thread overview]
Message-ID: <20261127-mt7603u-v1-8-369bee9846f8@gmail.com> (raw)
In-Reply-To: <20261127-mt7603u-v1-0-369bee9846f8@gmail.com>
From: Murad Dadashev <llamapersonaltv@gmail.com>
MT7603U uses hardware queues 0-3 for BK, BE, VI and VO, sent on the bulk
out endpoints following the inband command endpoint, and hardware queue
4 for management frames, sent on the inband command endpoint.
Signed-off-by: Murad Dadashev <llamapersonaltv@gmail.com>
---
drivers/net/wireless/mediatek/mt76/usb.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c
index f6464315e3741c849f7a5ff13502abaae2150a37..317ef30a597caea21df4e88848f78191e9be4bb6 100644
--- a/drivers/net/wireless/mediatek/mt76/usb.c
+++ b/drivers/net/wireless/mediatek/mt76/usb.c
@@ -976,6 +976,23 @@ mt76u_ac_to_hwq(struct mt76_dev *dev, struct mt76_queue *q, u8 qid)
u8 ac = qid < IEEE80211_NUM_ACS ? qid : IEEE80211_AC_BE;
switch (mt76_chip(dev)) {
+ case 0x7603: {
+ static const u8 wmm_queue_map[] = {
+ [IEEE80211_AC_BK] = 0,
+ [IEEE80211_AC_BE] = 1,
+ [IEEE80211_AC_VI] = 2,
+ [IEEE80211_AC_VO] = 3,
+ };
+
+ if (qid == MT_TXQ_PSD) {
+ q->hw_idx = 4;
+ q->ep = MT_EP_OUT_INBAND_CMD;
+ } else {
+ q->hw_idx = wmm_queue_map[ac];
+ q->ep = q->hw_idx + 1;
+ }
+ break;
+ }
case 0x7663: {
static const u8 lmac_queue_map[] = {
/* ac to lmac mapping */
--
2.47.3
next prev parent reply other threads:[~2026-11-27 8:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 8:35 [PATCH 00/10] wifi: mt76: mt7603: add MT7603U USB support Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 01/10] wifi: mt76: mt7603: split core code into mt7603-common Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 02/10] wifi: mt76: mt7603: make mcu message helpers usable by other buses Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 03/10] wifi: mt76: mt7603: set beacon and CAB queue index in the TXD directly Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 04/10] wifi: mt76: mt7603: only enable TSSI with valid calibration data Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 05/10] wifi: mt76: mt7603: allow configuring TX and RX antennas separately Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 06/10] wifi: mt76: mt7603: defer WTBL updates when register access can sleep Murad Dadashev via B4 Relay
2026-11-27 8:35 ` [PATCH 07/10] wifi: mt76: mt7603: skip PCIe specific setup on non-MMIO buses Murad Dadashev via B4 Relay
2026-11-27 8:35 ` Murad Dadashev via B4 Relay [this message]
2026-11-27 8:35 ` [PATCH 10/10] wifi: mt76: mt7603: add AP mode support for USB devices Murad Dadashev via B4 Relay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127-mt7603u-v1-8-369bee9846f8@gmail.com \
--to=devnull+llamapersonaltv.gmail.com@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=llamapersonaltv@gmail.com \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=shayne.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox