[PATCH 0/4] wifi: mt76: mt7663s: two fixes and fewer SDIO status reads

Ryan Brue ryanbrue.dev at gmail.com
Mon Oct 26 12:10:35 PDT 2026


These came out of bringing up the MT7663 SDIO module of the Amazon Fire
TV Stick (3rd generation, MT8695) on mainline. The board's devicetree
is not upstream yet.

Patches 1 and 2 are fixes. With the offload firmware, a hw scan with a
random source address ends at once with no results, so NetworkManager,
which randomizes by default, finds no networks; patch 1 stops
advertising random-address scans on SDIO. Patch 2 lets mt7663s wait
while btmtksdio holds the ROM patch semaphore, instead of failing to
load its firmware when Bluetooth probes first. The matching btmtksdio
fixes for the same race are posted separately to linux-bluetooth.

Patches 3 and 4 make the txrx worker cheaper on the bus: the interrupt
mask writes become CMD52s, and mt7663s takes the next interrupt status
from the end of each RX read (RX enhance mode) instead of reading WHISR
before every RX read. On this board they halve the status reads; the
link is air-limited, so throughput did not change.

All four were tested on v7.3 on the stick, with btmtksdio built in; six
boots in a row brought up both functions, with each driver downloading
the patch first at least once. They apply cleanly to the mt76 tree, where
they were build-tested with W=1.

This series was developed with the help of an LLM coding assistant.

Signed-off-by: Ryan Brue <ryanbrue.dev at gmail.com>
---
Ryan Brue (4):
      wifi: mt76: mt7663s: don't advertise random MAC address scans
      wifi: mt76: mt7615: wait while Bluetooth downloads the MT7663 patch
      wifi: mt76: sdio: use CMD52 to mask and unmask the interrupt
      wifi: mt76: mt7663s: use RX enhance mode

 drivers/net/wireless/mediatek/mt76/mt76.h        | 10 +++++++++
 drivers/net/wireless/mediatek/mt76/mt7615/init.c |  6 +++++
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c  | 14 ++++++++++--
 drivers/net/wireless/mediatek/mt76/mt7615/sdio.c | 28 +++++++++++++++++++-----
 drivers/net/wireless/mediatek/mt76/sdio.c        |  3 +++
 drivers/net/wireless/mediatek/mt76/sdio_txrx.c   | 21 +++++++++++++-----
 6 files changed, 69 insertions(+), 13 deletions(-)
---
base-commit: 16f56d6e78fb3cdb3214bdc6a61c2b1c567c9aa0
change-id: 20261021-rbrue-sheldon-upstreaming-mt7663s-22c31d3fc68d

Best regards,
-- 
Ryan Brue <ryanbrue.dev at gmail.com>




More information about the Linux-mediatek mailing list