2015-11-13 14:36:02

by Larry Finger

[permalink] [raw]
Subject: [PATCH] Bluetooth: btusb: Fix device recognition problems for certain Realtek units

A few Realtek devices such as RTL8723AU and RTL8723BU have a single USB
ID shared between the wifi and Bluetooth parts. With the current ID table
structure, the Bluetooth part is not found during the device probe.

The fix is to move the USB_VENDOR_AND_INTERFACE_INFO macro for vendor 0x0bda
from the usb_device_id blacklist_table[] to usb_device_id btusb_table[].

Signed-off-by: Larry Finger <[email protected]>
---
drivers/bluetooth/btusb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 92f0ee3..17233ea 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -157,6 +157,10 @@ static const struct usb_device_id btusb_table[] = {
{ USB_DEVICE(0x8087, 0x0a5a),
.driver_info = BTUSB_INTEL_BOOT | BTUSB_BROKEN_ISOC },

+ /* Realtek Bluetooth devices */
+ { USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01),
+ .driver_info = BTUSB_REALTEK },
+
{ } /* Terminating entry */
};

@@ -310,10 +314,6 @@ static const struct usb_device_id blacklist_table[] = {
{ USB_VENDOR_AND_INTERFACE_INFO(0x8087, 0xe0, 0x01, 0x01),
.driver_info = BTUSB_IGNORE },

- /* Realtek Bluetooth devices */
- { USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01),
- .driver_info = BTUSB_REALTEK },
-
/* Additional Realtek 8723AE Bluetooth devices */
{ USB_DEVICE(0x0930, 0x021d), .driver_info = BTUSB_REALTEK },
{ USB_DEVICE(0x13d3, 0x3394), .driver_info = BTUSB_REALTEK },
--
2.1.4