Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: btmtksdio: fix MT7663 setup next to the Wi-Fi function
@ 2026-10-26 19:02 Ryan Brue
  2026-10-26 19:02 ` [PATCH 1/2] Bluetooth: btmtksdio: wait while Wi-Fi downloads the shared patch Ryan Brue
  2026-10-26 19:02 ` [PATCH 2/2] Bluetooth: btmtksdio: retry enabling the function on MT7663/MT7668 Ryan Brue
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Brue @ 2026-10-26 19:02 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Matthias Brugger,
	AngeloGioacchino Del Regno, Sean Wang
  Cc: linux-bluetooth, linux-kernel, linux-arm-kernel, linux-mediatek,
	Ryan Brue

On MT7663 and MT7668 combo chips the Bluetooth and Wi-Fi SDIO functions
share one ROM patch, and which driver downloads it depends on probe
order. When btmtksdio probes while mt7663s is downloading or starting
its firmware, setup fails, and in the first case the chip is left
unresponsive until reset. Patch 1 waits for the other function's
download to finish; patch 2 retries the function-enable request that
the chip refuses while Wi-Fi is starting.

The matching mt76 fix, for when Bluetooth downloads the patch first, is
posted separately to linux-wireless.

Tested on v7.3 on an Amazon Fire TV Stick (3rd generation, MT8695, with
an MT7663 SDIO module), with both drivers built in: six boots in a row
brought up both functions, with each driver downloading the patch first
at least once, and BLE scanning works next to Wi-Fi.
The patches apply unchanged to bluetooth-next, 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@gmail.com>
---
Ryan Brue (2):
      Bluetooth: btmtksdio: wait while Wi-Fi downloads the shared patch
      Bluetooth: btmtksdio: retry enabling the function on MT7663/MT7668

 drivers/bluetooth/btmtksdio.c | 63 ++++++++++++++++++++++++++++++++++---------
 1 file changed, 51 insertions(+), 12 deletions(-)
---
base-commit: 27731ba091954eccddb2657053b590d2113e8d98
change-id: 20261021-rbrue-sheldon-upstreaming-btmtksdio-mt7663-99d049724644

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


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

end of thread, other threads:[~2026-10-26 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 19:02 [PATCH 0/2] Bluetooth: btmtksdio: fix MT7663 setup next to the Wi-Fi function Ryan Brue
2026-10-26 19:02 ` [PATCH 1/2] Bluetooth: btmtksdio: wait while Wi-Fi downloads the shared patch Ryan Brue
2026-10-26 22:02   ` Bluetooth: btmtksdio: fix MT7663 setup next to the Wi-Fi function bluez.test.bot
2026-10-26 19:02 ` [PATCH 2/2] Bluetooth: btmtksdio: retry enabling the function on MT7663/MT7668 Ryan Brue

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