Bluetooth: Add sample BT USB mini-driver
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
Signed-off-by Tedd Ho-Jeong An <[email protected]>
--- 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
@@ -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
Marcel Holtmann
maintainerHi Tedd,
Quoted 14 lines
This patch adds sample BT USB mini-driver
Signed-off-by Tedd Ho-Jeong An <[email protected]>--- drivers/bluetooth/btusb.c | 3 + drivers/bluetooth/btusb_sample.c | 189 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100644 drivers/bluetooth/btusb_sample.cdrivers/bluetooth/btusb.c +0
-0
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