Skip to content

Add MT7921 SDIO Bluetooth support

[email protected] linux-bluetooth linux-mediatek lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 1 replyIn review
  2. v110 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Bluetooth: mediatek: add BT_MTK moduledrivers/bluetooth/Kconfig drivers/bluetooth/Makefile drivers/bluetooth/btmtk.c +2 more+398 -3250 replies
2/10Bluetooth: btmtksido: rely on BT_MTK moduledrivers/bluetooth/Kconfig drivers/bluetooth/btmtk.h drivers/bluetooth/btmtksdio.c+28 -1680 replies
3/10Bluetooth: btmtksdio: add .set_bdaddr supportdrivers/bluetooth/btmtksdio.c+2 -00 replies
4/10Bluetooth: btmtksdio: explicitly set WHISR as write-1-cleardrivers/bluetooth/btmtksdio.c+8 -30 replies
5/10Bluetooth: btmtksdio: move interrupt service to workdrivers/bluetooth/btmtksdio.c+63 -690 replies
6/10Bluetooth: btmtksdio: update register CSDIOCSR operationdrivers/bluetooth/btmtksdio.c+6 -20 replies
7/10Bluetooth: btmtksdio: use register CRPLR to read packet lengthdrivers/bluetooth/btmtksdio.c+5 -40 replies
8/10Bluetooth: btmtksdio: transmit packet according to status TX_EMPTYdrivers/bluetooth/btmtksdio.c+15 -100 replies
9/10mmc: add MT7921 SDIO identifiers for MediaTek Bluetooth devicesinclude/linux/mmc/sdio_ids.h+1 -00 replies
10/10Bluetooth: btmtksdio: add MT7921s Bluetooth supportdrivers/bluetooth/btmtk.h drivers/bluetooth/btmtksdio.c+144 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/10] Add MT7921 SDIO Bluetooth support

From: Sean Wang <[email protected]>

The patchset adds the MT7921 SDIO (MT7921S) Blutooth support to btmtksdio driver, which basically are made up of 3 parts.

PART 1: patch 1-3 to create btmtk module to rely on

These are preliminary patches for MT7921s driver to move the common firmware download procedure and the common functions from MT7921u to btmtk module to make MT7921u, MT7921s and other devices can share with to reduce the unnecessary duplicated code being created.

PART 2: patch 4-8 to refactor btmtksdio prior to adding mt7921s

These are preliminary patches for MT7921s driver to refactor the current btmtksdio to make MT7921S is able to coexist with the devices the current driver can support with the generic code and improve the performance on packet transmitting and receving process.

PART 3: patch 9-10 to add specific mt7921s logic

Add the specific logic regarding to mt7921s bluetooth.

The changelog from v1 to v2:
- fix the test failure reported from bluez test bot
- fix the test warning reported from kernel test robot
- rebase onto the up-to-date bluetooth-next/master
- fix the typo from mt7961_data to mt7921_data
- improve the function btsdio_mtk_reg_read with dropping the hard coding

Mark-yw Chen (1):
Bluetooth: btmtksdio: transmit packet according to status TX_EMPTY

Sean Wang (9):
Bluetooth: mediatek: add BT_MTK module
Bluetooth: btmtksido: rely on BT_MTK module
Bluetooth: btmtksdio: add .set_bdaddr support
Bluetooth: btmtksdio: explicitly set WHISR as write-1-clear
Bluetooth: btmtksdio: move interrupt service to work
Bluetooth: btmtksdio: update register CSDIOCSR operation
Bluetooth: btmtksdio: use register CRPLR to read packet length
mmc: add MT7921 SDIO identifiers for MediaTek Bluetooth devices
Bluetooth: btmtksdio: add MT7921s Bluetooth support

 drivers/bluetooth/Kconfig     |   6 +
 drivers/bluetooth/Makefile    |   1 +
 drivers/bluetooth/btmtk.c     | 289 ++++++++++++++++++++
 drivers/bluetooth/btmtk.h     | 111 ++++++++
 drivers/bluetooth/btmtksdio.c | 496 +++++++++++++++++-----------------
 drivers/bluetooth/btusb.c     | 331 +----------------------
 include/linux/mmc/sdio_ids.h  |   1 +
 7 files changed, 658 insertions(+), 577 deletions(-)
 create mode 100644 drivers/bluetooth/btmtk.c
 create mode 100644 drivers/bluetooth/btmtk.h
Signature · 1 line
2.25.1