Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5314703rwb; Wed, 7 Sep 2022 00:20:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5sExoXwelZyZWwd57fqHlfabrx87amesd6/29WrNJ99WFYqVljqpMUnDe23iN8bmSn8puy X-Received: by 2002:a17:906:dc90:b0:742:1dc7:ab5 with SMTP id cs16-20020a170906dc9000b007421dc70ab5mr1372193ejc.212.1662535217697; Wed, 07 Sep 2022 00:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662535217; cv=none; d=google.com; s=arc-20160816; b=Yr5WEt6ZkbupvlVt/+T8t4IWOFI83JT56UEQsd2MGhh2iIt2eD4X9Wp8gHd5KoZEMW aJPsHlnAeAqPAI5hFcddVZ12jKHW7ENQkyrg8OyLWOEk5p5y1dtRmNIDVZUegtpEWCOL XN7RuBGthdhCGzAmINfNcqos/cfZ3FwAUtXRBERxvP/Wys9gPFYifJDCl5V/mztVJ9j7 ybn1Hkn4FWAWuVZpabSEiUM7XlyDK5jTLe3t1eMYG+zqpq3sSjH92AkN41Kr4fi3qOpy ZTAgx8SIBpcRwJXDkhNf1qb8cUVIhKWxmsK8GnZWO5JZa7x2QYB9SK6wLpOPAxIvd46M wuWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=5uHyxLuDglsdKyrLu+N3IDmIhBtep3NA5yu/u0hLDLs=; b=WYOPs65Txo6JYeF5SvmBXCJTDjCNckHyF5bSQkGMZnkhd+Ub5uJzSkQRx8bFGFcODU rzMrYQYL17FUBQ0H3un+EopdZYK2GGbW4bblbc6lq4Ap0Im6ABjLLG2/INuN8jM2U1dS brCtxfUtfhyrOHKg9uTICxScWyoXY30QwIlV5RarlodMihYYLuXyxagXLeNx1owVSihB TgnvB+HMmaM/RnVuQTKeJEopkFJnIyGWdsCmMIW6u9LFDcaiPP/G7uo1TINYZ8DPiCD1 siXB8UiKrMVdgn6h0O58pH0fKyfKFn41a37I6iOI9f5QXRSLbV5LY+QbRqUMkGmWdx7X rgbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RMSqf6ku; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a05640242c800b0043db3c4b3b8si11174497edc.28.2022.09.07.00.19.38; Wed, 07 Sep 2022 00:20:17 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=RMSqf6ku; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbiIGHLt (ORCPT + 99 others); Wed, 7 Sep 2022 03:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiIGHLh (ORCPT ); Wed, 7 Sep 2022 03:11:37 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14B8A286B for ; Wed, 7 Sep 2022 00:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662534682; x=1694070682; h=from:to:cc:subject:date:message-id; bh=TswZ8N7JglSxoMClbCwpIymTEhF/Bi8PFsVqffb7jY8=; b=RMSqf6kuF4kY6HAGJy4WkPMCyLZSjJC+VP6Od+O3ngcgwMzO+HlwXlkh hKHkqk1k+ah4uNgIBZ60nQSjLHoE2fmfL80ltYsxkHcdAJCTO5alEvA5y 6HrT9iWb4I8EpTT/phE5NEcrkOEPGUt8LtTzoLXitDS67Ax+IlqGyb/RQ BFUP3q0pDF8H3kan4EBReBXpDv2RPpSOJlhoSamPqT+RvPrZ59eNPySOc nKXsrYC8G29d5icsqnmk40cxSyormm75mx9FNrLpggFDmtcHlCWDqkwU/ 0sXpvxWQA0bCN3+F0hJ7/Puicj0a43fmdbUakGJUhpycGd2lui0VGkXf/ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="283798349" X-IronPort-AV: E=Sophos;i="5.93,296,1654585200"; d="scan'208";a="283798349" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 00:11:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,296,1654585200"; d="scan'208";a="703496705" Received: from intel-lenovo-legion-y540-15irh-pg0.iind.intel.com ([10.224.186.95]) by FMSMGA003.fm.intel.com with ESMTP; 07 Sep 2022 00:11:20 -0700 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: chethan.tumkur.narayan@intel.com, ravishankar.srivatsa@intel.com, tedd.an@intel.com, Kiran K Subject: [PATCH v1] Bluetooth: btintel: Mark Intel controller to support LE_STATES quirk Date: Wed, 7 Sep 2022 12:49:45 +0530 Message-Id: <20220907071945.9925-1-kiran.k@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 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 --- 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.17.1