Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6372343pxv; Thu, 29 Jul 2021 12:56:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkGohFUIylpuSBhQ6Qomd8x6lcNTuAAA8ceD7On6V0toZS61EHNBCDh309JrAJkSmOhi0v X-Received: by 2002:a92:6a03:: with SMTP id f3mr4517035ilc.43.1627588601637; Thu, 29 Jul 2021 12:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627588601; cv=none; d=google.com; s=arc-20160816; b=mUaJwvvf03P1KGRtZHBGMwyVMLs8tOlkvYXCBd5KEsnDsMiOc25XQS9426S1KG5P2R fNCmScDfdpmecoehDlwunLP3GlNKfNPFqJZvRhLVizjuuwpQkQ0OFMlmOb8WCyER46Om a3G3eUh/Hcx3SNVBB8Q1NCSQuN35KpOVPsXViavqBoE4aJxGtft5WmuIJD+BOA6F746f 90mYnnrkyfIrRSPdumgNJh+P5OKtZBG92Nky2HHe0kW4tNy0/4MhksYZZ+6x/Rg0JS5g 8vRlFVdq73W5LMwZ/JiXZvu5pyvAZfSPCjdipwLwimdnOi7t0S56LK5ZtEHOVOnAsmJX oRlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=wEVAjg+cENnMWBq7AOc2tbwOgxfBH7s+PMs7z6ts7uY=; b=c/U3ffDVctkMPoxAezkL3bMI4SSxHRDJoOcaQgaTVAdPj0lPojIN94+ls3Jl4IZM8b QqX7FbAM3JapS/C10HTXgrOWmtNYyqi1qvKf9JlcvBxmUUubq+CUlJyBJitzTL/j9uHJ B+H2hiVCuWHpTIOxpP0vzidxmgP8K0v2AcoAEADdrrncaQAjNEl/LzDqosFWrwIXtfJs 3vRDSrCtLYdFr9891hiGwDJPRNdKwB6fuSt2Hp2IiDvB7xngbIJjE2kjJk3llzFtRw5c HzN8/a2GhRRanuI3s+RG2a2BWeC8f4X0KKnrmPCZmVAHC/KFslRUC8p7DK7wyi3akSJX 2iMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si4653730ils.75.2021.07.29.12.56.26; Thu, 29 Jul 2021 12:56:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbhG2Tzu convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Jul 2021 15:55:50 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:60213 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbhG2Tzu (ORCPT ); Thu, 29 Jul 2021 15:55:50 -0400 Received: from smtpclient.apple (p5b3d23f8.dip0.t-ipconnect.de [91.61.35.248]) by mail.holtmann.org (Postfix) with ESMTPSA id F04BFCED1E; Thu, 29 Jul 2021 21:55:45 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH] Bluetooth: btusb: Make the CSR clone chip force-suspend workaround more generic From: Marcel Holtmann In-Reply-To: <906e95ce-b0e5-239e-f544-f34d8424c8da@gmail.com> Date: Thu, 29 Jul 2021 21:55:45 +0200 Cc: Johan Hedberg , Luiz Augusto von Dentz , BlueZ , linux-kernel@vger.kernel.org, Hans de Goede Content-Transfer-Encoding: 8BIT Message-Id: References: <906e95ce-b0e5-239e-f544-f34d8424c8da@gmail.com> To: Ismael Ferreras Morezuelas X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ismael, > Turns out Hans de Goede completed the work I started last year trying to > improve Chinese-clone detection of CSR controller chips. Quirk after quirk > these Bluetooth dongles are more usable now. > > Even after a few BlueZ regressions; these clones are so fickle that some > days they stop working altogether. Except on Windows, they work fine. > > > But this force-suspend initialization quirk seems to mostly do the trick, > after a lot of testing Bluetooth now seems to work *all* the time. > > The only problem is that the solution ended up being masked under a very > stringent check; when there are probably hundreds of fake dongle > models out there that benefit from a good reset. Make it so. > > > Fixes: 81cac64ba258a ("Bluetooth: Deal with USB devices that are faking CSR vendor") > Fixes: cde1a8a992875 ("Bluetooth: btusb: Fix and detect most of the Chinese Bluetooth controllers") > Fixes: d74e0ae7e0303 ("Bluetooth: btusb: Fix detection of some fake CSR controllers with a bcdDevice val of 0x0134") > Fixes: 0671c0662383e ("Bluetooth: btusb: Add workaround for remote-wakeup issues with Barrot 8041a02 fake CSR controllers") > > Cc: stable@vger.kernel.org > Cc: Hans de Goede > Tested-by: Ismael Ferreras Morezuelas > Signed-off-by: Ismael Ferreras Morezuelas > --- > > I've changed the warning line to make it easy to grep and detect if this updated > workaround is part of the driver. Should make it much more obvious to users in > case their dongle doesn't work for other reasons. There's a clear then-now. > > Easy to narrow other future issues down. Let me know what you think. > > drivers/bluetooth/btusb.c | 61 +++++++++++++++++++++------------------ > 1 file changed, 33 insertions(+), 28 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel