Skip to contentSkip to conversation

Bluetooth: Add sample BT USB mini-driver

RFC In review Tedd Ho-Jeong An 2 participants 2 messages Nov 2, 2012 – Nov 11, 2012 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

RFC v3 3/3 Bluetooth: Add sample BT USB mini-driver

From: Tedd Ho-Jeong An <[email protected]>

This patch adds sample BT USB mini-driver

---
 drivers/bluetooth/btusb.c        |    3 +
 drivers/bluetooth/btusb_sample.c |  189 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 192 insertions(+)
 create mode 100644 drivers/bluetooth/btusb_sample.c
drivers/bluetooth/btusb.c +3 -0
index 39a1e6c..630d938 100644
@@ -193,6 +193,9 @@ static struct usb_device_id blacklist_table[] = {
 	/* Frontline ComProbe Bluetooth Sniffer */
 	{ USB_DEVICE(0x16d3, 0x0002), .driver_info = BTUSB_SNIFFER },
 
+	/* BT USB sample mini-driver */
+	{ USB_DEVICE(0x1234, 0x5678), .driver_info = BTUSB_IGNORE },
+
 	{ }	/* Terminating entry */
 };
 
drivers/bluetooth/btusb_sample.c new file +189 -0

189 lines not on this page · raw message

Signature · 1 line
1.7.9.5
maintainer
#1 lore raw

Hi Tedd,

Quoted 14 lines

This patch adds sample BT USB mini-driver

---
 drivers/bluetooth/btusb.c        |    3 +
 drivers/bluetooth/btusb_sample.c |  189 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 192 insertions(+)
 create mode 100644 drivers/bluetooth/btusb_sample.c
drivers/bluetooth/btusb.c +0 -0
index 39a1e6c..630d938 100644

drivers/bluetooth/btusb.c static struct usb_device_id blacklist_table[] = { · line 200

Quoted 8 lines
drivers/bluetooth/btusb.c +3 -0
@@ -193,6 +193,9 @@ static struct usb_device_id blacklist_table[] = {
 	/* Frontline ComProbe Bluetooth Sniffer */
 	{ USB_DEVICE(0x16d3, 0x0002), .driver_info = BTUSB_SNIFFER },
 
+	/* BT USB sample mini-driver */
+	{ USB_DEVICE(0x1234, 0x5678), .driver_info = BTUSB_IGNORE },
+
 	{ }	/* Terminating entry */
 };

we should convert BCM92035 into a mini-driver for demo purposes. It is the perfect candidate and as a nice extra result, I can remove the stupid hdev->driver_init queue.

Regards

Marcel