Skip to content

Bluetooth: btmtk: MediaTek ISO data transmission support

Chris Lu kernelci linux-bluetooth linux-mediatek lkml oe-kbuild-all regressions 7 versions – Applied

Status from this message: This series was applied to bluetooth/bluetooth-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest8 patches 5 repliesApplied 8/8
  2. v68 patches 3 repliesSuperseded
  3. v58 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v44 patches4 repliesSuperseded
v34 patches1 replySuperseded
v23 patches6 repliesSuperseded
v13 patches2 repliesSuperseded

Changes in v7 from the cover letter

-Change MediaTek's specific suspend/resume function naming to btmtk_usb_suspend/resume and add comment to explain the purpose of function.
---

Patches in v7 All 8 applied

#Subject and filesSizeRepliesApplied
1/8Bluetooth: btusb: mediatek: remove the unnecessary goto tagdrivers/bluetooth/btusb.c+1 -41 replyApplied
2/8Bluetooth: btusb: mediatek: return error for failed reg accessdrivers/bluetooth/btusb.c+84 -300 repliesApplied
3/8Bluetooth: btmtk: rename btmediatek_datadrivers/bluetooth/btmtk.c drivers/bluetooth/btmtk.h drivers/bluetooth/btusb.c+10 -110 repliesApplied
4/8Bluetooth: btusb: add callback function in btusb suspend/resumedrivers/bluetooth/btusb.c+9 -00 repliesApplied
5/8Bluetooth: btmtk: move btusb_mtk_hci_wmt_sync to btmtk.cdrivers/bluetooth/btmtk.c drivers/bluetooth/btmtk.h drivers/bluetooth/btmtksdio.c +2 more+305 -2830 repliesApplied
6/8Bluetooth: btmtk: move btusb_mtk_[setup, shutdown] to btmtk.cdrivers/bluetooth/btmtk.c drivers/bluetooth/btmtk.h drivers/bluetooth/btusb.c+484 -4450 repliesApplied
7/8Bluetooth: btmtk: move btusb_recv_acl_mtk to btmtk.cdrivers/bluetooth/btmtk.c drivers/bluetooth/btmtk.h drivers/bluetooth/btusb.c+41 -330 repliesApplied
8/8Bluetooth: btusb: mediatek: add ISO data transmission functionsdrivers/bluetooth/btmtk.c drivers/bluetooth/btmtk.h drivers/bluetooth/btusb.c+415 -04 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/8] Bluetooth: btmtk: MediaTek ISO data transmission support

Since SIG has not yet clearly defined the specification for ISO data transmission over USB, MediaTek has adopted a method of adding an additional interrupt endpoint for ISO data transmission. This approach differs from the current method used in the Bluetooth upstream driver, which utilizes existing bulk endpoints. The interrupt endpoint provides guaranteed bandwidth, sufficient maximum data length for ISO packets and error checking.

Driver sets up ISO interface and endpoints in btusb_mtk_setup and clears the setup in btusb_mtk_shutdown. These flow can't move to btmtk.c due to btusb_driver is only defined in btusb.c when claiming/relaesing interface. Once ISO interface is claimed, driver can use specific interrupt endpoint to send and receive iso data. ISO packet anchor stops when driver suspending and resubmit interrupt urb for ISO data when driver resuming.

---
Change from v6 to v7:
-Change MediaTek's specific suspend/resume function naming to btmtk_usb_suspend/resume and add comment to explain the purpose of function.
---

Chris Lu (8):
Bluetooth: btusb: mediatek: remove the unnecessary goto tag
Bluetooth: btusb: mediatek: return error for failed reg access
Bluetooth: btmtk: rename btmediatek_data
Bluetooth: btusb: add callback function in btusb suspend/resume
Bluetooth: btmtk: move btusb_mtk_hci_wmt_sync to btmtk.c
Bluetooth: btmtk: move btusb_mtk_[setup, shutdown] to btmtk.c
Bluetooth: btmtk: move btusb_recv_acl_mtk to btmtk.c
Bluetooth: btusb: mediatek: add ISO data transmission functions

 drivers/bluetooth/btmtk.c     | 1067 ++++++++++++++++++++++++++++++++-
 drivers/bluetooth/btmtk.h     |   91 ++-
 drivers/bluetooth/btmtksdio.c |    1 +
 drivers/bluetooth/btmtkuart.c |    1 +
 drivers/bluetooth/btusb.c     |  751 +++--------------------
 5 files changed, 1227 insertions(+), 684 deletions(-)
Signature · 1 line
2.18.0