Staging: add USB MTK bluetooth driver
Subsystems (2)
PATCH v2 1/1 Staging: add USB MTK bluetooth driver
From: "Cho, Yu-Chen" <[email protected]>
This driver is for the Mediatek Bluetooth that can be found in many different laptops. It was written by Mediatek, but cleaned up to work properly in the kernel tree by SUSE.
--
Changes since v1:
1.fixed built error , because build path typo.
2.change to correct version number.
Signed-off-by Cho, Yu-Chen <[email protected]>
--- drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + drivers/staging/btmtk_usb/Kconfig | 11 + drivers/staging/btmtk_usb/Makefile | 1 + drivers/staging/btmtk_usb/README | 14 + drivers/staging/btmtk_usb/TODO | 10 + drivers/staging/btmtk_usb/btmtk_usb.c | 1793 +++++++++++++++++++++++++++++++++ drivers/staging/btmtk_usb/btmtk_usb.h | 138 +++ 8 files changed, 1970 insertions(+) create mode 100644 drivers/staging/btmtk_usb/Kconfig create mode 100644 drivers/staging/btmtk_usb/Makefile create mode 100644 drivers/staging/btmtk_usb/README create mode 100644 drivers/staging/btmtk_usb/TODO create mode 100644 drivers/staging/btmtk_usb/btmtk_usb.c create mode 100644 drivers/staging/btmtk_usb/btmtk_usb.h
drivers/staging/Kconfig +2 -0
@@ -140,4 +140,6 @@ source "drivers/staging/netlogic/Kconfig" source "drivers/staging/dwc2/Kconfig" +source "drivers/staging/btmtk_usb/Kconfig" + endif # STAGING
drivers/staging/Makefile +1 -0
@@ -62,3 +62,4 @@ obj-$(CONFIG_FIREWIRE_SERIAL) += fwserial/ obj-$(CONFIG_ZCACHE) += zcache/ obj-$(CONFIG_GOLDFISH) += goldfish/ obj-$(CONFIG_USB_DWC2) += dwc2/ +obj-$(CONFIG_USB_BTMTK) += btmtk_usb/
drivers/staging/btmtk_usb/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +config USB_BTMTK + tristate "Mediatek Bluetooth support" + depends on USB && BT && m + ---help--- + Say Y here if you wish to control a MTK USB Bluetooth. + + This option depends on 'USB' support being enabled + + To compile this driver as a module, choose M here: the + module will be called btmtk_usb. +
drivers/staging/btmtk_usb/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_USB_BTMTK) += btmtk_usb.o
drivers/staging/btmtk_usb/README new file +14 -0
@@ -0,0 +1,14 @@ +-build driver modules + make + +-install driver modules + make install + +-remove driver modules + make clean + +-dynamic debug message + turn on CONFIG_DYNAMIC_DEBUG compiler flag for current kernel + mount -t debugfs none /sys/kernel/debug/ + echo "module module_name +p" > /sys/kernel/debug/dynamic_debug/control(turn on debug messages, module name such as btmtk_usb) + echo "module module_name -p" > /sys/kernel/debug/dynamic_debug/control(turn off debug messages, module name such as btmtk_usb)
drivers/staging/btmtk_usb/TODO new file +10 -0
@@ -0,0 +1,10 @@ +TODO: + - checkpatch.pl clean + - determine if the driver should not be using a duplicate + version of the usb-bluetooth interface code, but should + be merged into the drivers/bluetooth/ directory and + infrastructure instead. + - review by the bluetooth developer community + +Please send any patches for this driver to Yu-Chen, Cho <[email protected]> and [email protected]
drivers/staging/btmtk_usb/btmtk_usb.c new file +1793 -0
1,793 lines not on this page · raw message
drivers/staging/btmtk_usb/btmtk_usb.h new file +138 -0
138 lines not on this page · raw message
Signature · 1 line
1.8.1.4