archive mirror
 help / color / mirror / Atom feed
From: Michael Sun <>
	Chethan T N <>,
	Michael Sun <>,
	Johan Hedberg <>,
	Luiz Augusto von Dentz <>,
	Marcel Holtmann <>,
Subject: [PATCH] Bluetooth: btusb: Enable MSFT extension for Intel next generation controllers
Date: Thu, 29 Jul 2021 09:43:21 -0700	[thread overview]
Message-ID: <20210729094319.1.Ib7a90fea41e56da34bab6811c2ecf6b255a14f51@changeid> (raw)

From: Chethan T N <>

The Intel TyphoonPeak, GarfieldPeak Bluetooth controllers
support the Microsoft vendor extension and they are using
0xFC1E for VsMsftOpCode.

Verified on a GarfieldPeak device through bluetoothctl show

Signed-off-by: Chethan T N <>
Signed-off-by: Michael Sun <>

 drivers/bluetooth/btusb.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 1876a960b3dc..23cf6e98173b 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -3031,6 +3031,17 @@ static int btusb_setup_intel_newgen(struct hci_dev *hdev)
 	btintel_version_info_tlv(hdev, &version);
+	/* All Intel new genration controllers support the Microsoft vendor
+	 * extension are using 0xFC1E for VsMsftOpCode.
+	 */
+	switch (INTEL_HW_VARIANT(version.cnvi_bt)) {
+	case 0x17:
+	case 0x18:
+	case 0x19:
+		hci_set_msft_opcode(hdev, 0xFC1E);
+		break;
+	}
 	/* Set the event mask for Intel specific vendor events. This enables
 	 * a few extra events that are useful during general operation. It
 	 * does not enable any debugging related events.

             reply	other threads:[~2021-07-29 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 16:43 Michael Sun [this message]
2021-07-29 19:47 ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210729094319.1.Ib7a90fea41e56da34bab6811c2ecf6b255a14f51@changeid \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] Bluetooth: btusb: Enable MSFT extension for Intel next generation controllers' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).