Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932561AbbFTV7J (ORCPT ); Sat, 20 Jun 2015 17:59:09 -0400 Received: from blu004-omc4s33.hotmail.com ([65.55.111.172]:57951 "EHLO BLU004-OMC4S33.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755258AbbFTV66 (ORCPT ); Sat, 20 Jun 2015 17:58:58 -0400 X-Greylist: delayed 300 seconds by postgrey-1.27 at vger.kernel.org; Sat, 20 Jun 2015 17:58:58 EDT X-TMN: [KouZY56w1k/k2kOk5KqobSstMQfCW+KV] X-Originating-Email: [xry111@outlook.com] Message-ID: From: Xi Ruoyao To: Marcel Holtmann , Gustavo Padovan , Johan Hedberg CC: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Drake , Larry Finger , Xi Ruoyao Subject: [PATCH] Bluetooth: btusb: Add Realtek devices into module device table Date: Sun, 21 Jun 2015 05:53:45 +0800 X-Mailer: git-send-email 1.9.1 X-OriginalArrivalTime: 20 Jun 2015 21:53:57.0653 (UTC) FILETIME=[9BDA2C50:01D0ABA3] MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1462 Lines: 41 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 ('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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/