diff mbox series

[v2,3/4] Bluetooth: btusb: Enable MSFT extension for Intel controllers

Message ID 20201217145149.v2.3.I84d6a963dbe3a014e8456943785b076344f659bf@changeid
State Superseded
Headers show
Series [v2,1/4] Bluetooth: Keep MSFT ext info throughout a hci_dev's life cycle | expand

Commit Message

Miao-chen Chou Dec. 17, 2020, 10:53 p.m. UTC
The Intel JeffersonPeak, HarrisonPeak and CyclonePeak Bluetooth
controllers support the Microsoft vendor extension and they are using
0xFC1E for VsMsftOpCode.

< HCI Command: Vendor (0x3f|0x001e) plen 1
        00
> HCI Event: Command Complete (0x0e) plen 15
      Vendor (0x3f|0x001e) ncmd 1
        Status: Success (0x00)
        00 3f 00 00 00 00 00 00 00 01 50

The following test step was performed.
- Boot the test devices with HarrisonPeak and verify INFO print in
dmesg.

Signed-off-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Archie Pusaka <apusaka@chromium.org>
---

(no changes since v1)

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

Comments

Marcel Holtmann Dec. 18, 2020, 9:34 p.m. UTC | #1
Hi Miao-chen,

> The Intel JeffersonPeak, HarrisonPeak and CyclonePeak Bluetooth

> controllers support the Microsoft vendor extension and they are using

> 0xFC1E for VsMsftOpCode.

> 

> < HCI Command: Vendor (0x3f|0x001e) plen 1

>        00

>> HCI Event: Command Complete (0x0e) plen 15

>      Vendor (0x3f|0x001e) ncmd 1

>        Status: Success (0x00)

>        00 3f 00 00 00 00 00 00 00 01 50

> 

> The following test step was performed.

> - Boot the test devices with HarrisonPeak and verify INFO print in

> dmesg.

> 

> Signed-off-by: Miao-chen Chou <mcchou@chromium.org>

> Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>

> Reviewed-by: Archie Pusaka <apusaka@chromium.org>

> ---

> 

> (no changes since v1)

> 

> drivers/bluetooth/btusb.c | 3 +++

> 1 file changed, 3 insertions(+)


patch has been applied to bluetooth-next tree.

Regards

Marcel
diff mbox series

Patch

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 03b83aa912779..25cfa47995a8a 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -2924,7 +2924,10 @@  static int btusb_setup_intel_new(struct hci_dev *hdev)
 	 * extension are using 0xFC1E for VsMsftOpCode.
 	 */
 	switch (ver.hw_variant) {
+	case 0x11:	/* JfP */
 	case 0x12:	/* ThP */
+	case 0x13:	/* HrP */
+	case 0x14:	/* CcP */
 		hci_set_msft_opcode(hdev, 0xFC1E);
 		break;
 	}