Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp314360qtb; Wed, 19 Oct 2022 02:39:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iPKAy1sc1qo6eRKjNJpBQMw1YKRU9IVlEkR0WF6/NTccvb8+uPPeUjv74WCB0m6IolDsW X-Received: by 2002:a17:902:be06:b0:185:115d:28ba with SMTP id r6-20020a170902be0600b00185115d28bamr7399497pls.63.1666172343748; Wed, 19 Oct 2022 02:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666172343; cv=none; d=google.com; s=arc-20160816; b=fd2lmyAPh8tb3ZOkDYvJHoqd1OM4euV04nsEtipVnRZZLn/aw1gNGCUEGh1AEGxiGv Z/Rv06+7cHfYqyjhgkYqEAgSYooAu8keoFgosqK4FcEjGq9ib7p5ibuz+ROEP+g3K90c sqjv/rtH67LTSMZ+WGLmy3h9KOFYQUerKxcjNsx/5bdFpOrrR7mbE2iGPSRvRpy2aISE CepHJWTwRJauxU2kFz8pU+EeWP61MBYKwObIRGvypuoEqn7RAKOpDq2tUxtK5fRhJJ4v 7PjAc0VZF525+jZgohqWEE3SYLEYrtRZxr6K2MO/BP/UcmjiFBw/vaAuyP66OtKZC0cE X3Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8+1rqTQTPVNCkRIel0xMlChNibIJqrOfisvBx5QqSgY=; b=yWVTPSa77AESVoEXL27o9xBVZ4nyFQmY1uMhsIhCpIAoJusiPp3gMac+KmB+ZmTz0Y cI279S86vRdPN+pwGioOT8XNmpULMVmFa3PwTteLXqyFmj9fftrzCAvifo4WKtXQy/kw dFp5+SDAdI0DYl3g3JQTp7+d7K1RBBEUj8jVquV4MV/Q6eissDVjo49uwB+PDTPjKDeY 3+8Uh3xMdRpl23cC7Aqrg97MQtlRg3twrVvEayDiGUR3gptHiqrF9+juEzfqt79VWTgB SbbmRel6P8PRaAgYfI0HN7XFzdvoaXTZRkESl8Lm8v3mamlG+ADm3pHcRkBVmfjSYSLT RtJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DJMH0EtC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a63e612000000b0045b0a113f6asi18579819pgh.846.2022.10.19.02.38.51; Wed, 19 Oct 2022 02:39:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=DJMH0EtC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231612AbiJSJ1n (ORCPT + 99 others); Wed, 19 Oct 2022 05:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233563AbiJSJ0c (ORCPT ); Wed, 19 Oct 2022 05:26:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8C76E52F6; Wed, 19 Oct 2022 02:11:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87866617E9; Wed, 19 Oct 2022 09:09:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2C41C433D7; Wed, 19 Oct 2022 09:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170566; bh=td0Bgb5k/mqBqt6ZeCIVd7jIB7tIe/i82PmDKrXTogw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DJMH0EtCcgPezfuKSvisfFT6U1EqAVuq3xGnXNLftNOUAOzjRcl+d8K1tX2OKPi+b r49m60TXyi46a53f7gaRW0Mzf33mQ3Rj27fk1s2BfQ2Nvfz4rPBq2oH77VvS96fVkv 9IaEcYI/W+aGCFzUL3XReX2+dQEm4cKuJhKQ1ldo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kiran K , Chethan T N , Luiz Augusto von Dentz , Sasha Levin Subject: [PATCH 6.0 702/862] Bluetooth: btintel: Mark Intel controller to support LE_STATES quirk Date: Wed, 19 Oct 2022 10:33:09 +0200 Message-Id: <20221019083321.020300983@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org From: Kiran K [ Upstream commit dd0a1794f4334ddbf9b7c5e7d642aaffff38c69b ] HarrrisonPeak, CyclonePeak, SnowFieldPeak and SandyPeak controllers are marked to support HCI_QUIRK_LE_STATES. Signed-off-by: Kiran K Signed-off-by: Chethan T N Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Sasha Levin --- 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); -- 2.35.1