Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btusb: Add Realtek devices into module device table
@ 2015-06-20 21:53 Xi Ruoyao
  2015-06-20 21:58 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Xi Ruoyao @ 2015-06-20 21:53 UTC (permalink / raw)
  To: Marcel Holtmann, Gustavo Padovan, Johan Hedberg
  Cc: linux-bluetooth, linux-kernel, Daniel Drake, Larry Finger,
	Xi Ruoyao

In 'commit a2698a9bf9b0 ("Bluetooth: btusb: Add Realtek
8723A/8723B/8761A/8821A support"), support of some Realtek
devices was added to the Generic Bluetooth USB driver in kernel.
However, these devices are not in the module device table of 
btusb.ko, so the kernel wouldn't probe them at all.

To fix this, add four entries in the device table btusb_table,
based on code from <https://github.com/lwfinger/rtl8723au_bt>
('new' branch).

This enables bluetooth support in the Lenovo Ideapad Yoga 13
which has RTL8723AU USB device, with product ID 0bda:1724.

Signed-off-by: Xi Ruoyao <xry111@outlook.com>
---
 drivers/bluetooth/btusb.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 3c10d4d..dd87623 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -148,6 +148,12 @@ static const struct usb_device_id btusb_table[] = {
 	{ USB_DEVICE(0x8087, 0x0a5a),
 	  .driver_info = BTUSB_INTEL_BOOT | BTUSB_BROKEN_ISOC },
 
+	/* Realtek Bluetooth  */
+	{ USB_VENDOR_AND_INTERFACE_INFO(0x0bda, 0xe0, 0x01, 0x01) },
+	{ USB_VENDOR_AND_INTERFACE_INFO(0x0bd5, 0xe0, 0x01, 0x01) },
+	{ USB_VENDOR_AND_INTERFACE_INFO(0x13d3, 0xe0, 0x01, 0x01) },
+	{ USB_VENDOR_AND_INTERFACE_INFO(0x0489, 0xe0, 0x01, 0x01) },
+
 	{ }	/* Terminating entry */
 };
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-22 15:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-20 21:53 [PATCH] Bluetooth: btusb: Add Realtek devices into module device table Xi Ruoyao
2015-06-20 21:58 ` Marcel Holtmann
2015-06-21  1:12   ` Larry Finger
2015-06-21  4:11     ` Xi Ruoyao
2015-06-21  4:23       ` Xi Ruoyao
2015-06-22 10:33     ` Marcel Holtmann
2015-06-22 12:01       ` Xi Ruoyao
2015-06-22 14:23       ` Larry Finger
2015-06-22 15:01         ` Xi Ruoyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox