Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1246245pxb; Fri, 21 Jan 2022 13:15:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/osR0d6EBACFGRzBMb8LFMR4lhgfC3xFi5GK5XzHDlEubF1euL5vg6TKkhfrlFXuIs5Nm X-Received: by 2002:a17:902:9683:b0:14a:957a:87f9 with SMTP id n3-20020a170902968300b0014a957a87f9mr5767094plp.76.1642799738868; Fri, 21 Jan 2022 13:15:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799738; cv=none; d=google.com; s=arc-20160816; b=qbva0AhkQrQVYu9ogutrTxNEjNq283z2ODzXxmRHYDOe13zO18a1zNKrOnjyKiBTOI 8aHPHae/A+BShYJb1FVVrXLmgo8ckyCt+zM+AMvnfSMn2xdXXCtTbDda8ISCD/TrFjSf vUrwnSspEQp2NhrcRB5KsmheUHsE84KpDk42CXuFlRKPIvm4bgvD1LAcqXyNY5IBxunh MP1H1Wpo/29vfWKIYelgU785JcNFcthHoy10i0eWdKoSMW18U6OvF7PkI/0qURDUcGQG 5N2Zf9+P4xbUCfpI1gJmb7N4SXcLFs5pIC+ALnqKaKesAhqFe7G3SoGXhP8aDedtktH4 2JTA== 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=oTJK5irTSwiAL7lNMG5xdm4fvGkWjO11jfMWO9ztfFo=; b=KfpBQlv4MjqFgsHhdWtO1+HRzwrEGAr4WkQcuJbNcqzBBgmW2rvZJJ2/Dxpsn7zv9K vulrFvahfKAdkzZ91UdgplqgInPB0kBcPTkuYVUSzzBpzYOkTTLu3vNV71qj2pZZXz0o +MXjqTD0Cp2HJ3r1S5MIdImhEwFXTVjFv2FqF/C9Vf/cVOXYL+owg2vj9mOgs+p01jIc UTUgXZrkN8w/0CTzkLKyF9Vc3L7fBrrXjOEe1JXTI+bH/bDV+RYWK+GhkKgZf5wZ33yP QJUId0FvzQWymHFen5irjRXPaVf71Vwb94FJUFdOThz5VUEg2f2YF8cv09wilAOyDGDl 4FQw== 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 s6si2052399plg.590.2022.01.21.13.15.25; Fri, 21 Jan 2022 13:15:38 -0800 (PST) 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 S1359783AbiATKOB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Jan 2022 05:14:01 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:32943 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359784AbiATKOA (ORCPT ); Thu, 20 Jan 2022 05:14:00 -0500 Received: from smtpclient.apple (p4fefca45.dip0.t-ipconnect.de [79.239.202.69]) by mail.holtmann.org (Postfix) with ESMTPSA id AEDCFCECF1; Thu, 20 Jan 2022 11:13:58 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: [PATCH] Bluetooth: btintel: Fix WBS setting for Intel legacy ROM products From: Marcel Holtmann In-Reply-To: <20220120075004.293700-1-hj.tedd.an@gmail.com> Date: Thu, 20 Jan 2022 11:13:58 +0100 Cc: linux-bluetooth@vger.kernel.org, Tedd Ho-Jeong An Content-Transfer-Encoding: 8BIT Message-Id: References: <20220120075004.293700-1-hj.tedd.an@gmail.com> To: Tedd Ho-Jeong An X-Mailer: Apple Mail (2.3693.40.0.1.81) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Tedd, > This patch adds the flag to identify the Intel legacy ROM products that > don't support WBS like WP and StP. > > Fixes: 3df4dfbec0f29 ("Bluetooth: btintel: Move hci quirks to setup routine") > Signed-off-by: Tedd Ho-Jeong An > --- > drivers/bluetooth/btintel.c | 10 +++++++--- > drivers/bluetooth/btintel.h | 1 + > drivers/bluetooth/btusb.c | 6 ++++++ > 3 files changed, 14 insertions(+), 3 deletions(-) > > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c > index 1a4f8b227eac..225ed0373e9d 100644 > --- a/drivers/bluetooth/btintel.c > +++ b/drivers/bluetooth/btintel.c > @@ -2428,10 +2428,14 @@ static int btintel_setup_combined(struct hci_dev *hdev) > > /* Apply the device specific HCI quirks > * > - * WBS for SdP - SdP and Stp have a same hw_varaint but > - * different fw_variant > + * WBS for SdP - For the Legacy ROM products, only SdP > + * supports the WBS. But the version information is not > + * enough to use here because the StP2 and SdP have same > + * hw_variant and fw_variant. So, this flag is set by > + * the transport driver(btusb) based on the HW info > + * (idProduct) > */ > - if (ver.hw_variant == 0x08 && ver.fw_variant == 0x22) > + if (!btintel_test_flag(hdev, INTEL_NO_WBS_SUPPORT)) > set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, > &hdev->quirks); > > diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h > index c9b24e9299e2..084a5e8dce39 100644 > --- a/drivers/bluetooth/btintel.h > +++ b/drivers/bluetooth/btintel.h > @@ -152,6 +152,7 @@ enum { > INTEL_BROKEN_INITIAL_NCMD, > INTEL_BROKEN_SHUTDOWN_LED, > INTEL_ROM_LEGACY, > + INTEL_NO_WBS_SUPPORT, please keep it as INTEL_ROM_LEGACY_NO_WBS or INTEL_ROM_LEGACY_NO_WBS_SUPPORT. It is better to make clear that this is only for our ROM products. Especially since above it is in the section for just the ROM products. Regards Marcel