Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp252547imi; Wed, 20 Jul 2022 23:06:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vipstZ69eiOg+Xf0D/ThcZmfIAI40snIeSOWIZxi5PLHi+QWFcTg3jeGeWBCG4fykPC5Gs X-Received: by 2002:a05:6402:1d53:b0:43a:9ba7:315b with SMTP id dz19-20020a0564021d5300b0043a9ba7315bmr55572319edb.350.1658383567042; Wed, 20 Jul 2022 23:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658383567; cv=none; d=google.com; s=arc-20160816; b=E9W+T0K8tXHSjaeSwqkCDiqQXO33hmNgs2+KV24a15nJlrL8uvFPmBPYJcRQnXF4FL 3ICbbJywOeIrd/KMGgHz4LaoqEowDtTCk8KCjrHYmOTb1DZNl4cAnmU6gstgZhceW5Sk g0g+1Az8lC9NfEPfkchM6s8ijdHiD/7U+iJjUe/0o9D1LnZAUOFo+fcwzxgHooYg9873 ZTCxuKreefkZ6lIOMNbtizyCU9hCqxA7idKSBD36kFmnTxcnY0dAS9vMr2FroCVy5A2F EXkqltvKn7noGrCXJJtVkmrePbU2cVpkUCK7BsI1ZV3mtOY6TFAq7ATo3SIYbKItKXrM vKMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=jUcky1r04rEkx9UQ23fy1TR33/eOScjGID6m91yFoHg=; b=dHIFtgY4M76FLeew11VXxnKiJTWz9Igkh/rsVVv/zDFTxtVcZM6ooDeo3uAbIC2MHr 4CVSBoV43ArpzMB/GDyMtgm8ghjFfoDVdoxjAuTywCV+FCs2leQKuPu439Lt91yAfXN6 7eAIcujFogvnQDzdZhqzGUZxkZzOFNS/kdIyO7a9QtRsLjCw1J7K6QDS5l+rC06tB2go TJESVdOe4VRLf5j/tc8jhcBDvk5rbPtpDsCSkNft/g4KfgSDOEK4/fYONpK1OaRCA555 tzXXzGYt4vxUS9okQyLTh3XMqAVwssNTefa8liGEXFl6CfFC9OwboLyY/ctSAES4h7mV j1NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=EuBBfack; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa39-20020a1709076d2700b0072a9ec4c1fdsi1803916ejc.594.2022.07.20.23.04.53; Wed, 20 Jul 2022 23:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=EuBBfack; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231707AbiGUGEo (ORCPT + 99 others); Thu, 21 Jul 2022 02:04:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbiGUGEn (ORCPT ); Thu, 21 Jul 2022 02:04:43 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D142A1D319; Wed, 20 Jul 2022 23:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1658383482; x=1689919482; h=from:to:cc:subject:date:message-id:mime-version; bh=jUcky1r04rEkx9UQ23fy1TR33/eOScjGID6m91yFoHg=; b=EuBBfack/N2OmqnHJov8Smkj1VUR6Deu7KAZgVlcjiNoFt5v5abpvNAW 0e3DBaRaxAwBa+iKQ3EHBXRR+6B+z6RTUrLzHeeajGZYCiFpZAVhkOhvV P9gP4AMx7U6BP3w19hh1VHbtbMUinFKNxKy1RF8CE8KoHP+X3sHxB5zg3 g=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Jul 2022 23:04:42 -0700 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 23:04:42 -0700 Received: from zijuhu-gv.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Jul 2022 23:04:39 -0700 From: Zijun Hu To: , , , , , , , , , CC: , , Subject: [PATCH v2 0/4] Bluetooth: Remove HCI_QUIRK_BROKEN_ERR_DATA_REPORTING Date: Thu, 21 Jul 2022 14:04:29 +0800 Message-ID: <1658383473-32188-1-git-send-email-quic_zijuhu@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch series remove bluetooth HCI_QUIRK_BROKEN_ERR_DATA_REPORTING the quirk was introduced by 'commit cde1a8a99287 ("Bluetooth: btusb: Fix and detect most of the Chinese Bluetooth controllers")' to mark HCI commands HCI_Read|Write_Default_Erroneous_Data_Reporting broken within BT device driver, but the reason why these two HCI commands are broken is that feature "Erroneous Data Reporting" is not enabled by firmware, so BT core driver can addtionally check feature bit "Erroneous Data Reporting" instead of the quirk to decide if these two HCI commands work fine. BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 2, Part C | page 587 This feature indicates whether the device is able to support the Packet_Status_Flag and the HCI commands HCI_Write_Default_- Erroneous_Data_Reporting and HCI_Read_Default_Erroneous_- Data_Reporting. Only QCA and fake CSR btusb device driver set the quirk currently since the feature "Erroneous Data Reporting" are not enabled by their firmware so we also remove the quirk from their device driver. Changes since v1: - split changes to solve build error between patches - optimize commit messages Zijun Hu (4): Bluetooth: hci_sync: Check LMP feature bit instead of quirk Bluetooth: btusb: Remove HCI_QUIRK_BROKEN_ERR_DATA_REPORTING for QCA Bluetooth: btusb: Remove HCI_QUIRK_BROKEN_ERR_DATA_REPORTING for fake CSR Bluetooth: hci_sync: Remove HCI_QUIRK_BROKEN_ERR_DATA_REPORTING drivers/bluetooth/btusb.c | 2 -- include/net/bluetooth/hci.h | 12 +----------- net/bluetooth/hci_sync.c | 7 ++----- 3 files changed, 3 insertions(+), 18 deletions(-) -- 2.7.4