From patchwork Thu Mar 3 22:17:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 547908 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EECEC433EF for ; Thu, 3 Mar 2022 22:17:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234523AbiCCWR5 (ORCPT ); Thu, 3 Mar 2022 17:17:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbiCCWR5 (ORCPT ); Thu, 3 Mar 2022 17:17:57 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3181BB0D3A for ; Thu, 3 Mar 2022 14:17:11 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id v1-20020a17090a088100b001bf25f97c6eso202874pjc.0 for ; Thu, 03 Mar 2022 14:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=8TQDQy7MH2XtSDgwJqWJrXwBWjsknhbxjzl287lmoqs=; b=ZEpD9LfmQyDBrGkUPDN1vq2uzlPt2w/5yiauquaVxj/2HBw2WwHTvqd5Frcf/WN0t1 yEBjlzzWD+pf7dtllWZBCiVlS1qIXrfYIFL0zhnniLZUTDm9FJd4Xvh8v5Ttj938m6Ls v/LyCzlLd9wEqFO14Oj+1/TlIws+/c8sN57lm/tJuxzq5wvSO4CWNnxkkgpZHFcZ7mhp kIjQBP34JPw1X7CHwmX0EFUi/XPupb7USeY5poMu2ANMu4xQnsiACr1IraQXqto9a5Db PZvd5wcf6Sx0R/nY4HAYLHlFEMCKBs2QkNXjpcSaWY/YYf/L5/nBlckZP2A8ReZXmgIs 0twg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=8TQDQy7MH2XtSDgwJqWJrXwBWjsknhbxjzl287lmoqs=; b=0CBBwyj3GX2SL5ymLFgZzZOLtN2agngK8iVwEllzpAt4Ma+7kTd2d5aOhdG+ktpmll 61vyZbuGkrLWKAiXwb/4hslCQJbc9JL44LaLoJn4lg2Yaa10TEJFHJUVG9Ezv55gMgn6 PiteNmSug5/s0ONNE5uFZ0iVHxpFOuLmNXP8mGK6tIBYplbyksIRBYAGTeXYyMQGVn9Z +3MgR5MJlylRsTr9SXmwxBFLoAnF2pl9SOXXagPfZ4KcwicWlsv47+SBkEPWD3gTbJk8 TympzbHAdIO2YoUuloJnZEUICI/8fzGaP3pajqlKwJZr3lRM2CLRvqdrt/2bZTM8+qsl p9TQ== X-Gm-Message-State: AOAM5315GUTgeS3kuEka5zEDBT26LZeMHxXk8YDBnFw9QTSOylkxNYHw LXBmI8pGhuIi3DYihUeaFlxEgr3kdvI= X-Google-Smtp-Source: ABdhPJxfbZsctDOTwWmQbqKisV0AmBa7697nW4vuUX2G6dVOLfx0u5CVb1pmTSSkblHPJaoXB7blmA== X-Received: by 2002:a17:90a:4289:b0:1bc:275b:8986 with SMTP id p9-20020a17090a428900b001bc275b8986mr7522239pjg.153.1646345830290; Thu, 03 Mar 2022 14:17:10 -0800 (PST) Received: from lvondent-mobl4.intel.com (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id p28-20020a056a000a1c00b004f6519e61b7sm3856932pfh.21.2022.03.03.14.17.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 14:17:10 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH 1/3] Bluetooth: btusb: Make use of of BIT macro to declare flags Date: Thu, 3 Mar 2022 14:17:07 -0800 Message-Id: <20220303221709.387865-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This makes use of BIT macro when declaring BTUSB flags which makes it understand how many bits are in use and many are left. Signed-off-by: Luiz Augusto von Dentz --- drivers/bluetooth/btusb.c | 54 +++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 558151f2f150..34d008380fdb 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -36,33 +36,33 @@ static bool reset = true; static struct usb_driver btusb_driver; -#define BTUSB_IGNORE 0x01 -#define BTUSB_DIGIANSWER 0x02 -#define BTUSB_CSR 0x04 -#define BTUSB_SNIFFER 0x08 -#define BTUSB_BCM92035 0x10 -#define BTUSB_BROKEN_ISOC 0x20 -#define BTUSB_WRONG_SCO_MTU 0x40 -#define BTUSB_ATH3012 0x80 -#define BTUSB_INTEL_COMBINED 0x100 -#define BTUSB_INTEL_BOOT 0x200 -#define BTUSB_BCM_PATCHRAM 0x400 -#define BTUSB_MARVELL 0x800 -#define BTUSB_SWAVE 0x1000 -#define BTUSB_AMP 0x4000 -#define BTUSB_QCA_ROME 0x8000 -#define BTUSB_BCM_APPLE 0x10000 -#define BTUSB_REALTEK 0x20000 -#define BTUSB_BCM2045 0x40000 -#define BTUSB_IFNUM_2 0x80000 -#define BTUSB_CW6622 0x100000 -#define BTUSB_MEDIATEK 0x200000 -#define BTUSB_WIDEBAND_SPEECH 0x400000 -#define BTUSB_VALID_LE_STATES 0x800000 -#define BTUSB_QCA_WCN6855 0x1000000 -#define BTUSB_INTEL_BROKEN_SHUTDOWN_LED 0x2000000 -#define BTUSB_INTEL_BROKEN_INITIAL_NCMD 0x4000000 -#define BTUSB_INTEL_NO_WBS_SUPPORT 0x8000000 +#define BTUSB_IGNORE BIT(0) +#define BTUSB_DIGIANSWER BIT(1) +#define BTUSB_CSR BIT(2) +#define BTUSB_SNIFFER BIT(3) +#define BTUSB_BCM92035 BIT(4) +#define BTUSB_BROKEN_ISOC BIT(5) +#define BTUSB_WRONG_SCO_MTU BIT(6) +#define BTUSB_ATH3012 BIT(7) +#define BTUSB_INTEL_COMBINED BIT(8) +#define BTUSB_INTEL_BOOT BIT(9) +#define BTUSB_BCM_PATCHRAM BIT(10) +#define BTUSB_MARVELL BIT(11) +#define BTUSB_SWAVE BIT(12) +#define BTUSB_AMP BIT(13) +#define BTUSB_QCA_ROME BIT(14) +#define BTUSB_BCM_APPLE BIT(15) +#define BTUSB_REALTEK BIT(16) +#define BTUSB_BCM2045 BIT(17) +#define BTUSB_IFNUM_2 BIT(18) +#define BTUSB_CW6622 BIT(19) +#define BTUSB_MEDIATEK BIT(20) +#define BTUSB_WIDEBAND_SPEECH BIT(21) +#define BTUSB_VALID_LE_STATES BIT(22) +#define BTUSB_QCA_WCN6855 BIT(23) +#define BTUSB_INTEL_BROKEN_SHUTDOWN_LED BIT(24) +#define BTUSB_INTEL_BROKEN_INITIAL_NCMD BIT(25) +#define BTUSB_INTEL_NO_WBS_SUPPORT BIT(26) static const struct usb_device_id btusb_table[] = { /* Generic Bluetooth USB device */ From patchwork Thu Mar 3 22:17:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 548355 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8327BC433F5 for ; Thu, 3 Mar 2022 22:17:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236553AbiCCWR6 (ORCPT ); Thu, 3 Mar 2022 17:17:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbiCCWR5 (ORCPT ); Thu, 3 Mar 2022 17:17:57 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A943EB0EA9 for ; Thu, 3 Mar 2022 14:17:11 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id p8so5939591pfh.8 for ; Thu, 03 Mar 2022 14:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=t8/a5oNDnoQ1v3SOkMkoJxQX9XnOyFK1eDpMszGVWQU=; b=jllXWEElRztodk5INXxeUM2sqeuJf/ugP/Z1xloTFDdZ7FSMrowKN1Sb90bHQLPsK2 0n/h+HyAEjvFCb5pcfjcmnIca6ZCAllatiwRUYzPoYlDupJaRGjojuAbSpYocwDz+RQt fmo7tbicRbJz19vUgm8DQ/jB40k4k9bJE/Dmviv4sgoIpVam4z08FSp6XVHwyldH0vvL liF/iQkyTPFZmT3x/szzlnTAAxVAY/iOQ1J8Tg3LY9jcIudZ2TLQAgS1Eo+pNXtXuKWD MI8aDvFeIxwqtvVMu8B1nEEagh/WnAvotyE54GtYKBBe9b5+aThehq9vj6rhikvPGCIq Cfow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t8/a5oNDnoQ1v3SOkMkoJxQX9XnOyFK1eDpMszGVWQU=; b=HOFw+bNgV1PUz+S4dPHiRi7UGNLlYoa0oewHaiQTGtJldwLjUVK6Bkf0A7Db7FEE8T DP2fr732JngeB+wvd4eksVKBcG3/AW0bFKOaLZiYtIChcjtN/oVcUH67fP43dCUTSdb3 5ik4da5BpJJil5QnxLxYbDpBEZmMnLnk5AxDnuJ7whWIMT4MDUQ4xS+4jiAivCxM46pr 0nUogoGCIDnXyBD/9TPJi9FFNdL96d38rGXfzUIA8EVyCe1C1Tq0OOAxlGsUB3OOdeYq 6RFBH9ubg/JwSbv0tFXMcHY7Vs7ZnxhgquSYsLQGgotDWIHfiiHdUw3VcnGS5Unps1Te IGqw== X-Gm-Message-State: AOAM533E8GWlgkE3UFYnNE1W+BGN+lsbSOQVhu/FOCNz0hysOAmiHJ8G S99Q/vc1SQuJSCMOTKsW/GaGwQRinnY= X-Google-Smtp-Source: ABdhPJwbE0+W+b5eM//bMAz7c0OJHL7hflGEXA5uepFE/EIqH8ndld/yhU6w/9JG11qBVqDIF+XN1A== X-Received: by 2002:a62:ee08:0:b0:4f6:b522:ca with SMTP id e8-20020a62ee08000000b004f6b52200camr131292pfi.48.1646345830891; Thu, 03 Mar 2022 14:17:10 -0800 (PST) Received: from lvondent-mobl4.intel.com (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id p28-20020a056a000a1c00b004f6519e61b7sm3856932pfh.21.2022.03.03.14.17.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 14:17:10 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH 2/3] Bluetooth: HCI: Add HCI_QUIRK_BROKEN_ENHANCED_SETUP_SCO quirk Date: Thu, 3 Mar 2022 14:17:08 -0800 Message-Id: <20220303221709.387865-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303221709.387865-1-luiz.dentz@gmail.com> References: <20220303221709.387865-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds HCI_QUIRK_BROKEN_ENHANCED_SETUP_SCO quirk which can be used to mark HCI_Enhanced_Setup_Synchronous_Connection as broken even if its support command bit are set since some controller report it as supported but the command don't work properly with some configurations (e.g. BT_VOICE_TRANSPARENT/mSBC). Signed-off-by: Luiz Augusto von Dentz --- include/net/bluetooth/hci.h | 9 +++++++++ include/net/bluetooth/hci_core.h | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 35c073d44ec5..a4da339aab07 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -255,6 +255,15 @@ enum { * during the hdev->setup vendor callback. */ HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER, + + /* + * When this quirk is set, disables the use of + * HCI_OP_ENHANCED_SETUP_SYNC_CONN command to setup SCO connections. + * + * This quirk can be set before hci_register_dev is called or + * during the hdev->setup vendor callback. + */ + HCI_QUIRK_BROKEN_ENHANCED_SETUP_SCO, }; /* HCI device flags */ diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index d5377740e99c..7a9795783850 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -1492,8 +1492,12 @@ void hci_conn_del_sysfs(struct hci_conn *conn); #define privacy_mode_capable(dev) (use_ll_privacy(dev) && \ (hdev->commands[39] & 0x04)) -/* Use enhanced synchronous connection if command is supported */ -#define enhanced_sco_capable(dev) ((dev)->commands[29] & 0x08) +/* Use enhanced synchronous connection if command is supported and its quirk + * has not been set. + */ +#define enhanced_sco_capable(dev) (((dev)->commands[29] & 0x08) && \ + !test_bit(HCI_QUIRK_BROKEN_ENHANCED_SETUP_SCO, \ + &(dev)->quirks)) /* Use ext scanning if set ext scan param and ext scan enable is supported */ #define use_ext_scan(dev) (((dev)->commands[37] & 0x20) && \ From patchwork Thu Mar 3 22:17:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 547907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 928D8C433FE for ; Thu, 3 Mar 2022 22:17:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236766AbiCCWR6 (ORCPT ); Thu, 3 Mar 2022 17:17:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234829AbiCCWR6 (ORCPT ); Thu, 3 Mar 2022 17:17:58 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70751B0D3A for ; Thu, 3 Mar 2022 14:17:12 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id g7-20020a17090a708700b001bb78857ccdso9042666pjk.1 for ; Thu, 03 Mar 2022 14:17:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=N2urqP76zwookiB2jBmOML63kwD8rQXsaS6vMAOGWjU=; b=DTqUNOzZobYYNGeXRe0EP6KiJIlj5IRz2W8pIEwiHoKTSS893wzwOBXsaotlM1oHFg 2VbqIPpmA69BEt7VAk8YEoKAbBWo3j1wobr4mOwzqy3dUcQO0g30bBxrdxXYJCdax99e c8h6bROVQeVSNw5dMSMLVQCyi6RPua9RSNv2upp0CNBCLnD7eCPzDpbdTt++17tBFq+w nIGsnop3cyrMd0HZ7x5rpXF+reecWomYRIgBtuspWaAwLOUJjNHyokYxBiMgeQwL7ftO Frq4PNGBmfuAXsf3sNQFNTXJfY4nD/dYnc9iTCFwkFSn9CnDi7hiYuHYuzsdCfeV63rl EJhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N2urqP76zwookiB2jBmOML63kwD8rQXsaS6vMAOGWjU=; b=DwNUUmOoHsw/JDeeXMh+1LVmC/pErpHh/HLlU5Uxeq5dA1ATW2jrPhlS3chIKHGf/u EGZwuSdO2wKNKcq3Pzzn7IQuPimuh735VWGnMY9ksu+GJplCDd/nxUkGISjbkhL2zY3o RtDjGC805qg7bThpYGnxRfoZDbC+CK4axScndC1ZsH9Zmk9r9Ay7fEToc6BeFn4NLGtI jHonj8EsXiJD/Jv3OB2OSHiHUrlbEiHoAxpv3NauaMHz2UusJt9CVmuaQ2p2ThW7qdro 8Y8vYJ1rlvd4MVRQjhDkKz4Z0PCvrTKP0PHru+akNUCRTc3BoA432w/vQ++zWE3ByzGK n37w== X-Gm-Message-State: AOAM5309bnmiL1KBLuOM56brird0rpx3yxWTiaAKwlJBHZetb8tU/fP6 xpbdouJTpSqesf7tGVe1wiZtibcmSGw= X-Google-Smtp-Source: ABdhPJyzjZZFdIoIvpfb9kYP8hbr86/mtbmQdqg+qydrzI5V5WilHirrSmHHxNv63a3X1XayPjB1kQ== X-Received: by 2002:a17:90a:c782:b0:1bc:dac0:88e with SMTP id gn2-20020a17090ac78200b001bcdac0088emr7617919pjb.172.1646345831606; Thu, 03 Mar 2022 14:17:11 -0800 (PST) Received: from lvondent-mobl4.intel.com (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id p28-20020a056a000a1c00b004f6519e61b7sm3856932pfh.21.2022.03.03.14.17.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 14:17:11 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH 3/3] Bluetooth: btusb: Add BTUSB_BROKEN_ENHANCED_SETUP_SCO flag Date: Thu, 3 Mar 2022 14:17:09 -0800 Message-Id: <20220303221709.387865-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303221709.387865-1-luiz.dentz@gmail.com> References: <20220303221709.387865-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds BTUSB_BROKEN_ENHANCED_SETUP_SCO flag which can be used to set HCI_QUIRK_BROKEN_ENHANCED_SETUP_SCO disabling the use of HCI_OP_ENHANCED_SETUP_SYNC_CONN command. Signed-off-by: Luiz Augusto von Dentz --- drivers/bluetooth/btusb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 34d008380fdb..d09a6a712632 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -63,6 +63,7 @@ static struct usb_driver btusb_driver; #define BTUSB_INTEL_BROKEN_SHUTDOWN_LED BIT(24) #define BTUSB_INTEL_BROKEN_INITIAL_NCMD BIT(25) #define BTUSB_INTEL_NO_WBS_SUPPORT BIT(26) +#define BTUSB_BROKEN_ENHANCED_SETUP_SCO BIT(27) static const struct usb_device_id btusb_table[] = { /* Generic Bluetooth USB device */ @@ -3848,6 +3849,9 @@ static int btusb_probe(struct usb_interface *intf, set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); } + if (id->driver_info & BTUSB_BROKEN_ENHANCED_SETUP_SCO) + set_bit(HCI_QUIRK_BROKEN_ENHANCED_SETUP_SCO, &hdev->quirks); + if (id->driver_info & BTUSB_CSR) { struct usb_device *udev = data->udev; u16 bcdDevice = le16_to_cpu(udev->descriptor.bcdDevice);