diff options
| -rw-r--r-- | drivers/bluetooth/hci_usb.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_usb.c b/drivers/bluetooth/hci_usb.c index 6a0c2230f82f..f4784f49f00a 100644 --- a/drivers/bluetooth/hci_usb.c +++ b/drivers/bluetooth/hci_usb.c | |||
| @@ -67,6 +67,8 @@ static int ignore = 0; | |||
| 67 | static int ignore_dga = 0; | 67 | static int ignore_dga = 0; |
| 68 | static int ignore_csr = 0; | 68 | static int ignore_csr = 0; |
| 69 | static int ignore_sniffer = 0; | 69 | static int ignore_sniffer = 0; |
| 70 | static int disable_scofix = 0; | ||
| 71 | static int force_scofix = 0; | ||
| 70 | static int reset = 0; | 72 | static int reset = 0; |
| 71 | 73 | ||
| 72 | #ifdef CONFIG_BT_HCIUSB_SCO | 74 | #ifdef CONFIG_BT_HCIUSB_SCO |
| @@ -110,6 +112,9 @@ static struct usb_device_id blacklist_ids[] = { | |||
| 110 | { USB_DEVICE(0x0a5c, 0x200a), .driver_info = HCI_RESET | HCI_BROKEN_ISOC }, | 112 | { USB_DEVICE(0x0a5c, 0x200a), .driver_info = HCI_RESET | HCI_BROKEN_ISOC }, |
| 111 | { USB_DEVICE(0x0a5c, 0x2009), .driver_info = HCI_BCM92035 }, | 113 | { USB_DEVICE(0x0a5c, 0x2009), .driver_info = HCI_BCM92035 }, |
| 112 | 114 | ||
| 115 | /* IBM/Lenovo ThinkPad with Broadcom chip */ | ||
| 116 | { USB_DEVICE(0x0a5c, 0x201e), .driver_info = HCI_WRONG_SCO_MTU }, | ||
| 117 | |||
| 113 | /* Microsoft Wireless Transceiver for Bluetooth 2.0 */ | 118 | /* Microsoft Wireless Transceiver for Bluetooth 2.0 */ |
| 114 | { USB_DEVICE(0x045e, 0x009c), .driver_info = HCI_RESET }, | 119 | { USB_DEVICE(0x045e, 0x009c), .driver_info = HCI_RESET }, |
| 115 | 120 | ||
| @@ -990,8 +995,10 @@ static int hci_usb_probe(struct usb_interface *intf, const struct usb_device_id | |||
| 990 | if (reset || id->driver_info & HCI_RESET) | 995 | if (reset || id->driver_info & HCI_RESET) |
| 991 | set_bit(HCI_QUIRK_RESET_ON_INIT, &hdev->quirks); | 996 | set_bit(HCI_QUIRK_RESET_ON_INIT, &hdev->quirks); |
| 992 | 997 | ||
| 993 | if (id->driver_info & HCI_WRONG_SCO_MTU) | 998 | if (force_scofix || id->driver_info & HCI_WRONG_SCO_MTU) { |
| 994 | set_bit(HCI_QUIRK_FIXUP_BUFFER_SIZE, &hdev->quirks); | 999 | if (!disable_scofix) |
| 1000 | set_bit(HCI_QUIRK_FIXUP_BUFFER_SIZE, &hdev->quirks); | ||
| 1001 | } | ||
| 995 | 1002 | ||
| 996 | if (id->driver_info & HCI_SNIFFER) { | 1003 | if (id->driver_info & HCI_SNIFFER) { |
| 997 | if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x997) | 1004 | if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x997) |
| @@ -1161,6 +1168,12 @@ MODULE_PARM_DESC(ignore_csr, "Ignore devices with id 0a12:0001"); | |||
| 1161 | module_param(ignore_sniffer, bool, 0644); | 1168 | module_param(ignore_sniffer, bool, 0644); |
| 1162 | MODULE_PARM_DESC(ignore_sniffer, "Ignore devices with id 0a12:0002"); | 1169 | MODULE_PARM_DESC(ignore_sniffer, "Ignore devices with id 0a12:0002"); |
| 1163 | 1170 | ||
| 1171 | module_param(disable_scofix, bool, 0644); | ||
| 1172 | MODULE_PARM_DESC(disable_scofix, "Disable fixup of wrong SCO buffer size"); | ||
| 1173 | |||
| 1174 | module_param(force_scofix, bool, 0644); | ||
| 1175 | MODULE_PARM_DESC(force_scofix, "Force fixup of wrong SCO buffers size"); | ||
| 1176 | |||
| 1164 | module_param(reset, bool, 0644); | 1177 | module_param(reset, bool, 0644); |
| 1165 | MODULE_PARM_DESC(reset, "Send HCI reset command on initialization"); | 1178 | MODULE_PARM_DESC(reset, "Send HCI reset command on initialization"); |
| 1166 | 1179 | ||
