From ce32a16d55811b795d1184f25f8aebea76b16c6d Mon Sep 17 00:00:00 2001 From: Kiran K <kiran.k@intel.com> Date: Thu, 7 Sep 2023 03:16:49 +0800 Subject: [PATCH 1126/2926] Bluetooth: btintel: Add support for Gale Peak BugLink: https://bugs.launchpad.net/bugs/2028065 Add hardware variant(0x1c) for Gale Peak core (CNVi). Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> (cherry picked from commit 8fd791afddca273817232a0bc5260a309754330b) Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com> --- drivers/bluetooth/btintel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index d9349ba48281..69f4f48c6415 100644 --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -468,10 +468,11 @@ static int btintel_version_info_tlv(struct hci_dev *hdev, switch (INTEL_HW_VARIANT(version->cnvi_bt)) { case 0x17: /* TyP */ case 0x18: /* Slr */ case 0x19: /* Slr-F */ case 0x1b: /* Mgr */ + case 0x1c: /* Gale Peak (GaP) */ break; default: bt_dev_err(hdev, "Unsupported Intel hardware variant (0x%x)", INTEL_HW_VARIANT(version->cnvi_bt)); return -EINVAL; @@ -2526,10 +2527,11 @@ static void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant) */ case 0x17: case 0x18: case 0x19: case 0x1b: + case 0x1c: hci_set_msft_opcode(hdev, 0xFC1E); break; default: /* Not supported */ break; @@ -2740,10 +2742,11 @@ static int btintel_setup_combined(struct hci_dev *hdev) break; case 0x17: case 0x18: case 0x19: case 0x1b: + case 0x1c: /* Display version information of TLV type */ btintel_version_info_tlv(hdev, &ver_tlv); /* Apply the device specific HCI quirks for TLV based devices * -- 2.41.0