Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
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 00/10] wifi: mt76: mt7603: add MT7603U USB support
Date: Fri, 27 Nov 2026 11:35:11 +0300	[thread overview]
Message-ID: <20261127-mt7603u-v1-0-369bee9846f8@gmail.com> (raw)

This series adds support for MT7603U USB 2.0 dongles (0e8d:7603) to the
mt7603 driver. It follows the layout of mt7615/mt7663u: the core code
moves into a new mt7603-common module, and the PCIe/SoC glue and the
new USB driver become separate modules on top of it.

Patches 1-7 prepare the shared code. Apart from the module split, the
changes that affect MT7603E and MT76x8 are:

- patch 4 only passes the TSSI enable flag to the firmware when the
  eFuse has a TSSI slope. The tested dongle sets the flag without any
  TSSI calibration, and the firmware stops transmitting in AP mode
  when TSSI is enabled.
- patch 5 adds set_antenna with separate TX and RX masks. The tested
  dongle loses about half of its two-stream frames on one TX chain;
  "iw phy phyX set antenna 1 3" keeps both RX chains and uses one TX
  stream.

Everything else that touches shared code only changes behaviour on
non-MMIO buses: register access over USB sleeps, so WTBL updates that
run in atomic context are deferred to work items, and PCIe-only setup
is skipped.

Patch 8 adds the MT7603 queue mapping to mt76-usb, patch 9 adds the
USB driver, and patch 10 adds AP mode, using an hrtimer computed from
the TSF instead of the pre-TBTT interrupt to refill the hardware beacon
and broadcast queues.

The device works with the existing mt7603_e2.bin firmware.

Tested on a 0e8d:7603 dongle on a Raspberry Pi 4, with the series
backported to 6.18:
- station mode with WPA2 on 2.4 GHz
- AP mode with hostapd and WPA2, about 56 Mbit/s in each direction
  with a single client at MCS 7

MT7603E and MT76x8 are build tested only, as I do not have that
hardware.

Claude Code was used throughout development of this series, for parts
of the code and changelogs, and for debugging. I reviewed the patches
and tested them on real hardware as described above.

---
Murad Dadashev (10):
      wifi: mt76: mt7603: split core code into mt7603-common
      wifi: mt76: mt7603: make mcu message helpers usable by other buses
      wifi: mt76: mt7603: set beacon and CAB queue index in the TXD directly
      wifi: mt76: mt7603: only enable TSSI with valid calibration data
      wifi: mt76: mt7603: allow configuring TX and RX antennas separately
      wifi: mt76: mt7603: defer WTBL updates when register access can sleep
      wifi: mt76: mt7603: skip PCIe specific setup on non-MMIO buses
      wifi: mt76: usb: add MT7603 queue mapping
      wifi: mt76: mt7603: add MT7603U USB support
      wifi: mt76: mt7603: add AP mode support for USB devices

 drivers/net/wireless/mediatek/mt76/mt7603/Kconfig  |  20 +-
 drivers/net/wireless/mediatek/mt76/mt7603/Makefile |  12 +-
 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c | 217 +++++++++++--
 drivers/net/wireless/mediatek/mt76/mt7603/core.c   |   4 +
 drivers/net/wireless/mediatek/mt76/mt7603/dma.c    |   1 +
 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c |   1 +
 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.h |   2 +
 drivers/net/wireless/mediatek/mt76/mt7603/init.c   |  40 ++-
 drivers/net/wireless/mediatek/mt76/mt7603/mac.c    | 154 ++++++++-
 drivers/net/wireless/mediatek/mt76/mt7603/main.c   | 103 ++++--
 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c    |  37 ++-
 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h |  33 +-
 drivers/net/wireless/mediatek/mt76/mt7603/pci.c    |  28 ++
 drivers/net/wireless/mediatek/mt76/mt7603/usb.c    | 350 +++++++++++++++++++++
 drivers/net/wireless/mediatek/mt76/usb.c           |  17 +
 15 files changed, 929 insertions(+), 90 deletions(-)
---
base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
change-id: 20261127-mt7603u-4fe6b9b85105

Best regards,
-- 
Murad Dadashev <llamapersonaltv@gmail.com>




             reply	other threads:[~2026-11-27  8:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  8:35 Murad Dadashev via B4 Relay [this message]
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 ` [PATCH 08/10] wifi: mt76: usb: add MT7603 queue mapping Murad Dadashev via B4 Relay
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-0-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