Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754022AbbFVP3e (ORCPT ); Mon, 22 Jun 2015 11:29:34 -0400 Received: from blu004-omc4s21.hotmail.com ([65.55.111.160]:61804 "EHLO BLU004-OMC4S21.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbbFVP32 (ORCPT ); Mon, 22 Jun 2015 11:29:28 -0400 X-TMN: [iCalzJlBQsLjsHpNfZrp/tCkgussXeYO] X-Originating-Email: [xry111@outlook.com] Message-ID: From: Xi Ruoyao To: Marcel Holtmann , Larry Finger CC: Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Xi Ruoyao Subject: [PATCH] Bluetooth: btusb: Modify entry to support misc devices with BT interface Date: Mon, 22 Jun 2015 23:28:49 +0800 X-Mailer: git-send-email 1.9.1 X-OriginalArrivalTime: 22 Jun 2015 15:29:26.0695 (UTC) FILETIME=[3950DB70:01D0AD00] 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: 1259 Lines: 33 In the USB device table in btusb driver, the code specify a generic Bluetooth device by matching Device Descriptor. However, some devices with BT interface are classified as "Miscellaneous Device" and have different Device Descriptor, such as Realtek RTL8723AU. Then btusb wouldn't probe them. To resolve this, specify generic Bluetooth device in the USB device table by matching Interface Descriptor, to probe all devices with Bluetooth interface including these "Miscellaneous" ones. Signed-off-by: Xi Ruoyao --- drivers/bluetooth/btusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 3c10d4d..beb6b23 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -62,7 +62,7 @@ static struct usb_driver btusb_driver; static const struct usb_device_id btusb_table[] = { /* Generic Bluetooth USB device */ - { USB_DEVICE_INFO(0xe0, 0x01, 0x01) }, + { USB_INTERFACE_INFO(0xe0, 0x01, 0x01) }, /* Generic Bluetooth AMP device */ { USB_DEVICE_INFO(0xe0, 0x01, 0x04), .driver_info = BTUSB_AMP }, -- 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/