Commit 0d751eca authored by Cho, Yu-Chen's avatar Cho, Yu-Chen Committed by Greg Kroah-Hartman
Browse files

Staging: add USB MTK bluetooth driver



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: default avatarCho, Yu-Chen <acho@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9b43b56f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -142,4 +142,6 @@ source "drivers/staging/dwc2/Kconfig"

source "drivers/staging/lustre/Kconfig"

source "drivers/staging/btmtk_usb/Kconfig"

endif # STAGING
+1 −0
Original line number Diff line number Diff line
@@ -63,3 +63,4 @@ obj-$(CONFIG_ZCACHE) += zcache/
obj-$(CONFIG_GOLDFISH)		+= goldfish/
obj-$(CONFIG_USB_DWC2)		+= dwc2/
obj-$(CONFIG_LUSTRE_FS)		+= lustre/
obj-$(CONFIG_USB_BTMTK)		+= btmtk_usb/
+11 −0
Original line number Diff line number Diff line
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.
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_USB_BTMTK)	+= btmtk_usb.o
+14 −0
Original line number Diff line number Diff line
-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)
Loading