Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: Add MediaTek MT7927 (MT6639) support
@ 2026-03-05 16:04 Javier Tia
  2026-03-05 16:05 ` [PATCH 1/2] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support Javier Tia
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Javier Tia @ 2026-03-05 16:04 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: =?utf-8?q?linux-mediatek=40lists=2Einfradead=2Eorg=2C_Marcel_Holtmann_=3Cmarcel=40holtmann=2Eorg=3E=2C_Luiz_Augusto_von_Dentz_=3Cluiz=2Edentz=40gmail=2Ecom=3E=2C_Matthias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno=40collabora=2Ecom=3E=2C_Jean-Fran=C3=A7ois_Marli=C3=A8re_=3Cfreelance=40marliere=2Efr=3E=2C_Paul_Menzel_=3Cpmenzel=40molgen=2Empg=2Ede=3E?=

This series adds Bluetooth support for the MediaTek MT7927 (Filogic 380)
combo WiFi 7 + BT 5.4 module. The BT subsystem uses hardware variant
0x6639 and connects via USB.

The MT7927 is shipping in motherboards and PCIe add-in cards from ASUS,
Gigabyte, Lenovo, and TP-Link since mid-2024. Without these patches,
users see "Unsupported hardware variant (00006639)" or the BT subsystem
hangs during firmware download.

Jean-François Marlière independently identified the same three root
causes and posted an analysis to the list in February [1], though the
patch diff was not included in that message. This series provides the
complete, split patches addressing the same issues.

The series consists of two patches:

  [1/2] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support
  [2/2] Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639)

Three driver changes are needed for MT6639:

1. Firmware naming: MT6639 uses firmware version prefix "2_1" instead of
   "1_1" used by MT7925 and other variants. The firmware path is
   mediatek/mt6639/BT_RAM_CODE_MT6639_2_1_hdr.bin.

2. Section filtering: The firmware binary contains 9 sections, but only
   sections with (dlmodecrctype & 0xff) == 0x01 are Bluetooth-related.
   Sending WiFi/other sections causes an irreversible BT subsystem hang.
   The filter is gated on dev_id == 0x6639 to avoid affecting other chips.

3. Firmware persistence: Firmware persists across BT soft power cycles
   (WMT_FUNC_CTRL=0 does not clear it). Skip re-download on subsequent
   setups to avoid a ~2.6s delay.

The firmware blob (BT_RAM_CODE_MT6639_2_1_hdr.bin) is being submitted
separately to linux-firmware via GitLab MR.

Tested on:
- ASUS ROG Crosshair X870E Hero (USB 0489:e13a)
- Arch Linux 6.19.6, BlueZ 5.82

The companion WiFi support for MT7927 (mt76/mt7925e driver) is being
submitted separately to linux-wireless.

[1] https://lore.kernel.org/linux-bluetooth/496b0f8505eb6ffb19fdbee6f963c62aa6790fba.camel@marliere.fr/

Link: https://bugzilla.kernel.org/show_bug.cgi?id=221096
Link: https://github.com/openwrt/mt76/issues/927

Javier Tia (2):
  Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support
  Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639)

 drivers/bluetooth/btmtk.c | 32 ++++++++++++++++++++++++++++++--
 drivers/bluetooth/btmtk.h |  1 +
 drivers/bluetooth/btusb.c | 10 ++++++++++
 3 files changed, 41 insertions(+), 2 deletions(-)

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639)
@ 2026-03-05 17:18 Javier Tia
  2026-03-05 22:39 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 23+ messages in thread
From: Javier Tia @ 2026-03-05 17:18 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: Javier Tia, linux-bluetooth

Hi Luiz,

On Thu, Mar 5, 2026 Luiz Augusto von Dentz wrote:
> Is the lsusb information for these devices present in the links? We
> normally require that to confirm these ID's are real/valid.

Yes. Here is lsusb -v from my ASUS ROG Crosshair X870E Hero
(0489:e13a):

  Bus 001 Device 005: ID 0489:e13a Foxconn / Hon Hai Wireless_Device
  Device Descriptor:
    idVendor           0x0489 Foxconn / Hon Hai
    idProduct          0xe13a Wireless_Device
    iManufacturer           5 MediaTek Inc.
    iProduct                6 Wireless_Device
    Interface Association:
      bFunctionClass        224 Wireless
      bFunctionSubClass       1 Radio Frequency
      bFunctionProtocol       1 Bluetooth

The other four USB IDs have been confirmed by users on their hardware
with lsusb output in the tracking issue and bugzilla:

  0489:e0fa - Lenovo Legion Pro 7 (kerberos272)
  0489:e10f - Gigabyte Z790 AORUS MASTER X (Thex-Thex)
  0489:e116 - TP-Link Archer TBE550E (marcin-fm)
  13d3:3588 - ASUS ProArt X870E-Creator (samutoljamo)

Each is documented in the GitHub tracking issue [1] and the upstream
bugzilla [2] with lsusb and dmesg output.

> Ok, this is especially valid if AI assisted, otherwise we would
> probably need to ensure the agent has access to every board to list
> its IDs, etc.
>
> Regarding the use of AI, there doesn't seem to be a global policy.
> However, for Bluetooth Im not inclined to accept any patches that
> hasn't been properly reviewed by the author

Understood. To be clear: I wrote and reviewed these patches myself.
Claude Code was used as a coding assistant (editor-level help, similar
to copilot), not as an autonomous agent. The Assisted-by trailer
follows the kernel coding-assistants policy from Documentation/
process/coding-assistants.rst.

I tested the patches on my own hardware (ASUS ROG Crosshair X870E
Hero, BT 0489:e13a, Arch Linux kernel 6.19.6). The USB IDs come from
real hardware reports by real users, not generated by AI. The patches
have been running as a DKMS out-of-tree module [1] since January 2026
across Arch, Ubuntu, Fedora, NixOS, and openSUSE.

Your feedback is being read and responded to by me personally.

[1] https://github.com/jetm/mediatek-mt7927-dkms
[2] https://bugzilla.kernel.org/show_bug.cgi?id=221096

Javier

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639)
@ 2026-03-05 22:56 Javier Tia
  0 siblings, 0 replies; 23+ messages in thread
From: Javier Tia @ 2026-03-05 22:56 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hi Luiz,

On Thu, Mar 5, 2026 Luiz Augusto von Dentz wrote:
> Let's gather their emails and list them as Tested-by, or perhaps we
> it should really be multiple changes to make easier to trace back
> how it was tested.

Good idea. I'll split patch 2/2 into per-device commits so each USB
ID has a clear Tested-by trail. The split will be:

  - 0489:e0fa (Lenovo Legion Pro 7)
  - 0489:e10f (Gigabyte Z790/X870E boards)
  - 0489:e116 (TP-Link Archer TBE550E)
  - 0489:e13a (ASUS X870E boards)
  - 13d3:3588 (ASUS ProArt X870E-Creator)

> Ok, so Id probably require 'Tested-by' to be a human, and in this
> case, I want the lsusb and dmesg | grep bluetooth either directly
> in the commit message or as a Link so it can be verified.

Understood. Each commit will include lsusb + dmesg snippets in the
body and a Link: tag pointing to the full hardware report.

I'm collecting the Tested-by consents now. Will send v2 once I have
them all.

Javier

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639)
@ 2026-03-26  0:18 Javier Tia
  0 siblings, 0 replies; 23+ messages in thread
From: Javier Tia @ 2026-03-26  0:18 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hi Luiz,

On Thu, Mar 5, 2026 Luiz Augusto von Dentz wrote:
> Let's gather their emails and list them as Tested-by, or perhaps
> we it should really be multiple changes to make easier to trace
> back how it was tested.

Done. v2 splits the USB IDs into per-device commits (6 commits),
each with its own Tested-by trailer from the hardware owner.

> Ok, so Id probably require 'Tested-by' to be a human, and in this
> case, I want the lsusb and dmesg | grep bluetooth either directly
> in the commit message or as a Link so it can be verified.

Each USB ID commit in v2 includes the full USB descriptor output
from /sys/kernel/debug/usb/devices. All Tested-by trailers are
from humans who tested on their own hardware.

Tested-by coverage: 5 of 6 USB IDs have trailers. The one
exception is 0489:e110 (MSI X870E Ace Max) where the user
confirmed it works but has not provided a formal trailer yet.

v2 is sent with all requested changes.

Best,
Javier

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

end of thread, other threads:[~2026-03-31 16:50 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 16:04 [PATCH 0/2] Bluetooth: Add MediaTek MT7927 (MT6639) support Javier Tia
2026-03-05 16:05 ` [PATCH 1/2] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support Javier Tia
2026-03-05 17:07   ` Luiz Augusto von Dentz
2026-03-05 18:34   ` Bluetooth: Add MediaTek MT7927 (MT6639) support bluez.test.bot
2026-03-07 16:03   ` [PATCH 1/2] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support Sean Wang
2026-03-05 16:05 ` [PATCH 2/2] Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639) Javier Tia
2026-03-05 17:00   ` Luiz Augusto von Dentz
2026-03-26 22:13 ` [PATCH v3 0/8] Bluetooth: Add MediaTek MT7927 (MT6639) support Javier Tia
2026-03-26 22:13   ` [PATCH v3 1/8] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support Javier Tia
2026-03-26 22:44     ` [v3,1/8] " bluez.test.bot
2026-03-31 16:50     ` [PATCH v3 1/8] " patchwork-bot+bluetooth
2026-03-26 22:13   ` [PATCH v3 2/8] Bluetooth: btmtk: fix ISO interface setup for single alt setting Javier Tia
2026-03-26 22:13   ` [PATCH v3 3/8] Bluetooth: btusb: Add MT7927 ID for ASUS ROG Crosshair X870E Hero Javier Tia
2026-03-26 22:13   ` [PATCH v3 4/8] Bluetooth: btusb: Add MT7927 ID for Lenovo Legion Pro 7 16ARX9 Javier Tia
2026-03-26 22:13   ` [PATCH v3 5/8] Bluetooth: btusb: Add MT7927 ID for Gigabyte Z790 AORUS MASTER X Javier Tia
2026-03-26 22:13   ` [PATCH v3 6/8] Bluetooth: btusb: Add MT7927 ID for MSI X870E Ace Max Javier Tia
2026-03-26 22:13   ` [PATCH v3 7/8] Bluetooth: btusb: Add MT7927 ID for TP-Link Archer TBE550E Javier Tia
2026-03-26 22:13   ` [PATCH v3 8/8] Bluetooth: btusb: Add MT7927 ID for ASUS X870E / ProArt X870E-Creator Javier Tia
2026-03-27 17:58   ` [PATCH v3 0/8] Bluetooth: Add MediaTek MT7927 (MT6639) support Luiz Augusto von Dentz
  -- strict thread matches above, loose matches on Subject: below --
2026-03-05 17:18 [PATCH 2/2] Bluetooth: btusb: Add USB device IDs for MediaTek MT7927 (MT6639) Javier Tia
2026-03-05 22:39 ` Luiz Augusto von Dentz
2026-03-05 22:56 Javier Tia
2026-03-26  0:18 Javier Tia

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