Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] wifi: mt76: mt7603: add MT7603U USB support
@ 2026-11-27  8:35 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
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Murad Dadashev via B4 Relay @ 2026-11-27  8:35 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Shayne Chen,
	Sean Wang, Matthias Brugger, AngeloGioacchino Del Regno
  Cc: linux-wireless, linux-kernel, linux-arm-kernel, linux-mediatek,
	Murad Dadashev

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>




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-27 10:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 08/10] wifi: mt76: usb: add MT7603 queue mapping Murad Dadashev via B4 Relay
2026-11-27  8:35 ` [PATCH 09/10] wifi: mt76: mt7603: add MT7603U USB support 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox