Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5434673rwb; Wed, 7 Sep 2022 02:49:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR7JguDzRVxhvwn74H2yr9mm1Z3ItLDU2GYuGznao6WTcBjUqYhXjZ1+WZDfWDLVri82d0K7 X-Received: by 2002:a05:6a00:21c8:b0:52e:3404:eba5 with SMTP id t8-20020a056a0021c800b0052e3404eba5mr2994014pfj.67.1662544148429; Wed, 07 Sep 2022 02:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662544148; cv=none; d=google.com; s=arc-20160816; b=R3Xc9yAN7844ciunOKLY22eMXVO2I5AUM/0KxGho5eOf1w24se+JBOCBvyLsbBVqOx BCr27g/G9IgDjNFv8PQIiVXVAwLKs6lixYT6+/sutGB1f5/1Cr69SDUMt+6Ms6NdeANr akuxrVPPyx78PEOxL7AmVuoRSiTuQbGVpPw4fbAfpJ9wYlJmzWU1OVu2ZfHKIWXC/vuT XuGccvVAfg4YLDcVt7gMSEE7I533hWDBQOgkBht+O+pQLgFprVCGm0EjwUVnmhjIYrO/ yq4wEbAJEq8689dC+hBnBZUmnvhyeuU+DuGR3fABTpnOV4W5kR9x/wA68brycTPBW4Fi Wcyw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=YVDYlt5ocY6hhmptNEZKEiPrxYjJW8BQB02Edna38nM=; b=l8gu13dyJNbtvUYnmcgfujZubB7uiC2Xps9fgUtCri89o0F2UI1OmRmchc2ZGGJkCw uCLJh4sAiMk+sfUUNODCUf2e6jMUjQnbgZYPpIH3Q3i1nMmtIBNRPbChB5rH+9nr/QMp F8jpnGniyakZZWnjism5pGFfMA5EIv5C94cQQ+/Fv0Nn+W518gnv76OwocYGpyb2mf0t BE7wYYxXAgNIn3nilCpigscNgNzSRHjQsdS4Qb1+R/xTlc9u8OlOMKu5kycstWU/l/k1 UGe0sZm9Zqda5b3XyBFccQFSv91+f6HQl1qItGrUvDElQ4u0LTTeANqjf541rEe5LR6S m1Xw== 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 l64-20020a638843000000b0043158b8ca77si14832354pgd.123.2022.09.07.02.48.44; Wed, 07 Sep 2022 02:49:08 -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 S230352AbiIGJ20 (ORCPT + 99 others); Wed, 7 Sep 2022 05:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbiIGJ2Z (ORCPT ); Wed, 7 Sep 2022 05:28:25 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC43F910BB for ; Wed, 7 Sep 2022 02:28:22 -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 5A14261EA1929; Wed, 7 Sep 2022 11:28:20 +0200 (CEST) Message-ID: <02789db1-cc34-62c2-16b0-91b4d7819f80@molgen.mpg.de> Date: Wed, 7 Sep 2022 11:28:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH v1] Bluetooth: btintel: Mark Intel controller to support LE_STATES quirk To: Kiran K Cc: chethan.tumkur.narayan@intel.com, ravishankar.srivatsa@intel.com, tedd.an@intel.com, linux-bluetooth@vger.kernel.org References: <20220907071945.9925-1-kiran.k@intel.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20220907071945.9925-1-kiran.k@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Kiran, Thank you for the patch. Am 07.09.22 um 09:19 schrieb Kiran K: > HarrrisonPeak, CyclonePeak, SnowFieldPeak and SandyPeak controllers Harrison > are marked to support HCI_QUIRK_LE_STATES. “Supporting” a quirk sounds strange. Maybe better use “need”? If new platforms need the quirk, do you know if the hardware folks are aware of this? Kind regards, Paul > Signed-off-by: Kiran K > Signed-off-by: Chethan T N > --- > drivers/bluetooth/btintel.c | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c > index 818681c89db8..d44a96667517 100644 > --- a/drivers/bluetooth/btintel.c > +++ b/drivers/bluetooth/btintel.c > @@ -2439,15 +2439,20 @@ static int btintel_setup_combined(struct hci_dev *hdev) > INTEL_ROM_LEGACY_NO_WBS_SUPPORT)) > set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, > &hdev->quirks); > + if (ver.hw_variant == 0x08 && ver.fw_variant == 0x22) > + set_bit(HCI_QUIRK_VALID_LE_STATES, > + &hdev->quirks); > > err = btintel_legacy_rom_setup(hdev, &ver); > break; > case 0x0b: /* SfP */ > - case 0x0c: /* WsP */ > case 0x11: /* JfP */ > case 0x12: /* ThP */ > case 0x13: /* HrP */ > case 0x14: /* CcP */ > + set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); > + fallthrough; > + case 0x0c: /* WsP */ > /* Apply the device specific HCI quirks > * > * All Legacy bootloader devices support WBS > @@ -2455,11 +2460,6 @@ static int btintel_setup_combined(struct hci_dev *hdev) > set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, > &hdev->quirks); > > - /* Valid LE States quirk for JfP/ThP familiy */ > - if (ver.hw_variant == 0x11 || ver.hw_variant == 0x12) > - set_bit(HCI_QUIRK_VALID_LE_STATES, > - &hdev->quirks); > - > /* Setup MSFT Extension support */ > btintel_set_msft_opcode(hdev, ver.hw_variant); > > @@ -2530,9 +2530,8 @@ static int btintel_setup_combined(struct hci_dev *hdev) > */ > set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks); > > - /* Valid LE States quirk for JfP/ThP familiy */ > - if (ver.hw_variant == 0x11 || ver.hw_variant == 0x12) > - set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); > + /* Set Valid LE States quirk */ > + set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); > > /* Setup MSFT Extension support */ > btintel_set_msft_opcode(hdev, ver.hw_variant);