From: Javier Tia <floss@jetm.me>
To: Sean Wang <sean.wang@kernel.org>
Cc: linux-bluetooth@vger.kernel.org,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@lists.infradead.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Subject: Re: [PATCH 1/2] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support
Date: Thu, 19 Mar 2026 17:18:10 -0600 [thread overview]
Message-ID: <20260319232046.E361D1EA006B@mailuser.phl.internal> (raw)
In-Reply-To: CAGp9Lzrysz8Tyh2KUMWVgHMsfUqojiJgPseG+CTULTqH=QQhaw@mail.gmail.com
Hi Sean,
Thank you for the review. I have a few questions before
preparing v2.
On Fri, Mar 7, 2026 Sean Wang wrote:
> BT and WiFi use separate firmware.
> I'm not sure why those WiFi sections are included in the binary.
> Another concern is whether it is appropriate to upload the firmware
> used in Windows to the linux-firmware repository,
> The firmware files are probably intended for dedicated OEMs.
Understood. The BT firmware we have came from an ASUS Windows
driver package because no official Linux firmware exists yet
for MT6639.
Regarding the section filtering: the MT6639 is a combo chip,
and the firmware binary we have contains 9 sections - some BT,
some not. Without filtering on (dlmodecrctype & 0xff) == 0x01,
the chip hangs irreversibly during download. I'd argue the
driver should handle mixed-section firmware correctly regardless
of source, since combo chip firmware may inherently contain
sections for multiple subsystems. But if MediaTek provides a
clean BT-only binary, the filtering becomes a no-op and can
be dropped.
Three questions:
1. Is MediaTek planning to release official MT6639/MT7927 BT
firmware for linux-firmware? A clean BT-only binary would
simplify the driver code.
2. The WiFi side has the same firmware dependency. The WiFi
series I sent to linux-wireless [1] uses
WIFI_MT6639_PATCH_MCU_2_1_hdr.bin and
WIFI_RAM_CODE_MT6639_2_1.bin under mediatek/mt6639/. Is
there a plan for official WiFi firmware submission, and
would the path be mediatek/mt6639/ or something else
(e.g. mediatek/mt7927/)?
3. Luiz requires a MediaTek engineer Signed-off-by on the
btmtk patch confirming the changes work as intended. Would
you be able to review and sign off on v2, or point me to
the right person at MediaTek for BT driver changes?
I plan to decouple the driver patches from firmware
availability - the btmtk/btusb changes are valid independent
of which firmware binary ends up in linux-firmware. The
linux-firmware MR !946 can track separately.
> This is common logic for the other mediatek chips. It only takes
> longer on the first power-on.
> If the firmware download is properly handled in
> btmtk_setup_firmware_79xx, we don't need the extra bit.
Got it. I'll drop the BTMTK_FIRMWARE_LOADED flag in v2 and
let btmtk_setup_firmware_79xx handle persistence the same way
it does for other chips.
[1] https://lore.kernel.org/linux-wireless/20260319-mt7927-wifi-support-v2-v2-0-d627a7fad70d@jetm.me/
Best,
Javier
next reply other threads:[~2026-03-19 23:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 23:18 Javier Tia [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-26 0:22 [PATCH 1/2] Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support Javier Tia
2026-03-26 4:48 ` Sean Wang
[not found] <177272816248.352280.12453518046823439297@jetm.me>
[not found] ` <20260305162928.5E8F11EA006C@mailuser.phl.internal>
2026-03-07 16:03 ` Sean Wang
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=20260319232046.E361D1EA006B@mailuser.phl.internal \
--to=floss@jetm.me \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=luiz.dentz@gmail.com \
--cc=sean.wang@kernel.org \
/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