Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp509207rwi; Thu, 27 Oct 2022 04:24:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NnGZf2i11SbEL6SnevSb1jqROW8Ad5ssJgspjKzOfUI56qsEZ0MJ3fvp052jdzaf0AmIJ X-Received: by 2002:a17:907:75d5:b0:78d:ef76:da7d with SMTP id jl21-20020a17090775d500b0078def76da7dmr41655871ejc.476.1666869881889; Thu, 27 Oct 2022 04:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666869881; cv=none; d=google.com; s=arc-20160816; b=KZ0msRWdWPX46vauqLW17R0I3Vj2vSJsSw+1SRKQlExLk7zkmr5kUJ+gJp62wWA3PE wDTIyjNUvLwY3ArAxPLt/69o3K/4SWKT3PVaqwcTiukiXJvEfggoacoFIRuAv1Bie5tv 9txNNO/Lhz/WlSDNBEuMnFjAtd96Uz72We5mQUYNmYbBYLB2J7VrOirA0SP2fQeQx7lw 8Z3l7DKr3lbFfstOcIqQpGObYRMV3+Hsyb2Qudzfg+N/oomXfuu6WyrEQLBjgxsIalwx JZLaP200UYoENY+17YZ7xraP0jcbXuT4oZvXLq20/K52bkG5RzF0Bo8MtbQPJpWJ/176 k5Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=lXK5YeKfybj7elWINq5sPxA/5qZ/ccGjNoTSg3JDCYw=; b=YcUDVEK8eWsgfcbNJU3qlmbqxUef4LLZYgXdggFS+N22qrw2RJzJzGE5aHVsGgf/al kxBq1vktHeXutA3GcjNdGljVa+00Qs1NpWlmQJvGFBmSeU2hGzE8bEYWNkUeJjMf44KU W630U7h4yxKJLaUxVq7gp3/4NTTa6No4ktG1MxSqFzc5Oh1PnDd91bMfQPRbXBA0FYH1 7mGq4OcuGGnVLNMalGkniqp1RfC81iOylMpS6WrsTxcTs5yg4H8mOtLsau08+frU6Xik Pic95y+OrHltPwf6YOyq0h6fP/W7UWo08Hytfaax9Nmbp6NYzfwvS25OafEHdDdF6Pvq iRXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr7-20020a170907720700b0078dce6e5cf8si1453705ejc.436.2022.10.27.04.24.16; Thu, 27 Oct 2022 04:24:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234730AbiJ0LSt (ORCPT + 99 others); Thu, 27 Oct 2022 07:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234831AbiJ0LSs (ORCPT ); Thu, 27 Oct 2022 07:18:48 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E17BBF88EF; Thu, 27 Oct 2022 04:18:46 -0700 (PDT) Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 4022861EA192A; Thu, 27 Oct 2022 13:18:44 +0200 (CEST) Message-ID: Date: Thu, 27 Oct 2022 13:18:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v1] Bluetooth: btusb: Fix enable failure for a CSR BT dongle Content-Language: en-US To: Zijun Hu Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, luiz.von.dentz@intel.com, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, Zijun Hu References: <1666868760-4680-1-git-send-email-quic_zijuhu@quicinc.com> From: Paul Menzel In-Reply-To: <1666868760-4680-1-git-send-email-quic_zijuhu@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 Dear Zijun, Thank you for the patch. Am 27.10.22 um 13:06 schrieb Zijun Hu: > From: Zijun Hu I‘d be more specific in the summary/title. Maybe: Correct quirk check to include BT 4.0 > A CSR BT dongle fails to be enabled bcz it is not detected as fake I’d write *because*. > rightly, fixed by correcting fake detection condition. > > below btmon error log says HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL is not set. > > < HCI Command: Set Event Filter (0x03|0x0005) plen 1 #23 [hci0] > Type: Clear All Filters (0x00) >> HCI Event: Command Complete (0x0e) plen 4 #24 [hci0] > Set Event Filter (0x03|0x0005) ncmd 1 > Status: Invalid HCI Command Parameters (0x12) > > the quirk is not set bcz current fake detection does not mark the dongle > as fake with below version info. > > < HCI Command: Read Local Version In.. (0x04|0x0001) plen 0 #1 [hci0] >> HCI Event: Command Complete (0x0e) plen 12 #2 [hci0] > Read Local Version Information (0x04|0x0001) ncmd 1 > Status: Success (0x00) > HCI version: Bluetooth 4.0 (0x06) - Revision 12576 (0x3120) > LMP version: Bluetooth 4.0 (0x06) - Subversion 8891 (0x22bb) > Manufacturer: Cambridge Silicon Radio (10) > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=60824 > Signed-off-by: Zijun Hu Please add a Fixes: tag. Kind regards, Paul > --- > 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 420be2ee2acf..727469d073f9 100644 > --- a/drivers/bluetooth/btusb.c > +++ b/drivers/bluetooth/btusb.c > @@ -2155,7 +2155,7 @@ static int btusb_setup_csr(struct hci_dev *hdev) > is_fake = true; > > else if (le16_to_cpu(rp->lmp_subver) <= 0x22bb && > - le16_to_cpu(rp->hci_ver) > BLUETOOTH_VER_4_0) > + le16_to_cpu(rp->hci_ver) >= BLUETOOTH_VER_4_0) > is_fake = true; > > /* Other clones which beat all the above checks */