Linux bluetooth development
 help / color / mirror / Atom feed
From: Ravindra <ravindra@intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: chethan.tumkur.narayan@intel.com, kiran.k@intel.com,
	luiz.dentz@gmail.com, Ravindra <ravindra@intel.com>
Subject: [PATCH v1] Bluetooth: btintel: Gate UEFI configuration on GUID lock status
Date: Wed,  2 Dec 2026 15:03:38 +0530	[thread overview]
Message-ID: <20261202093338.1146511-1-ravindra@intel.com> (raw)

The driver reads DSBR and SAR settings (BRDS, BSSS, BPMO) from UEFI
variables and programs them into the controller. Currently only the
BRDS and BSSS readers check the platform lock indicators or verify
that a variable is read-only, while BPMO only accepts a known locked
or test-mode indicator and DSBR reads its variable unconditionally.

Resolve the connectivity UEFI lock status once per TLV bootloader
setup, matching iwlwifi: prefer the UEFI GUID Lock Indicator (GLUI)
when it reports locked or test mode, and otherwise fall back to the
Bluetooth domain entry of the ACPI GLAI method. Route all Bluetooth
UEFI variable reads (DSBR, BRDS, BSSS, BPMO) through a single
verified reader that rejects variables when unlocked or when no valid
indicator is present on x86, and on non-x86 platforms with an unknown
lock status accepts a variable only when the firmware refuses a
rewrite of the same data and attributes.

When DSBR is untrusted or missing, send 0xfc0a with the default
disabled parameters. On Scorpius Peak2 and later platforms, run the
ACPI SAR fallback only when UEFI BRDS is untrusted or missing, and
send the SAR initialization complete command (0xfe25) once if the
ACPI path did not already send it.

Assisted-by: Copilot:claude-opus-5.5
Signed-off-by: Ravindra <ravindra@intel.com>
---
 drivers/bluetooth/btintel.c | 345 +++++++++++++++++-------------------
 drivers/bluetooth/btintel.h |   1 +
 2 files changed, 160 insertions(+), 186 deletions(-)

diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index 37fd2e31fd79..ca98bd106b86 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -38,6 +38,10 @@ static efi_guid_t btintel_efi_sar_guid =
 	EFI_GUID(0x42780dd5, 0x9a7d, 0x404c,
 		 0x80, 0xe4, 0x7f, 0x70, 0x94, 0x36, 0x03, 0x94);
 
+static efi_guid_t btintel_efi_common_guid =
+	EFI_GUID(0xe65d8884, 0xd4af, 0x4b20,
+		 0x8d, 0x03, 0x77, 0x2e, 0xcc, 0x3d, 0xa5, 0x31);
+
 static efi_guid_t btintel_efi_glui_guid =
 	EFI_GUID(0x6c5bed75, 0x0ee8, 0x4d45,
 		 0x98, 0x0b, 0x4d, 0x81, 0x31, 0xba, 0x84, 0xb5);
@@ -2949,6 +2953,68 @@ static u8 btintel_classify_pkt_type(struct hci_dev *hdev, struct sk_buff *skb)
 	return hci_skb_pkt_type(skb);
 }
 
+/* Read a connectivity UEFI variable only if its lock state makes it trusted.
+ *
+ * Returns 0 on success, -EPERM if the variable is not trusted, -ENOENT if it
+ * does not exist, -ENODEV if EFI runtime is unavailable, -EOPNOTSUPP if the
+ * variable is larger than @data_size, or -EIO on other read errors.
+ */
+static int btintel_uefi_get_verified_var(struct hci_dev *hdev,
+					 efi_char16_t *uefi_var_name,
+					 const char *var_name, efi_guid_t *guid,
+					 unsigned long *data_size, void *data)
+{
+	struct btintel_data *intel = hci_get_priv(hdev);
+	u8 lock_status = intel->guid_lock_status;
+	efi_status_t status;
+	u32 attr = 0;
+
+	if (!IS_ENABLED(CONFIG_EFI))
+		return -ENODEV;
+
+	if (!efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE))
+		return -ENODEV;
+
+	/* On x86 either GLUI or GLAI is expected to exist */
+	if (lock_status == BTINTEL_UEFI_LOCK_UNLOCKED ||
+	    (IS_ENABLED(CONFIG_X86) && lock_status == BTINTEL_UEFI_LOCK_UNKNOWN)) {
+		bt_dev_dbg(hdev, "UEFI %s not trusted (lock status %u)",
+			   var_name, lock_status);
+		return -EPERM;
+	}
+
+	status = efi.get_variable(uefi_var_name, guid, &attr, data_size, data);
+	if (status == EFI_NOT_FOUND)
+		return -ENOENT;
+	/* larger variable = future revision; treat as unsupported rather than error */
+	if (status == EFI_BUFFER_TOO_SMALL)
+		return -EOPNOTSUPP;
+	if (status != EFI_SUCCESS) {
+		bt_dev_warn(hdev, "UEFI %s read error (0x%lx)", var_name,
+			    status);
+		return -EIO;
+	}
+
+	if (lock_status != BTINTEL_UEFI_LOCK_UNKNOWN)
+		return 0;
+
+	/* Lock status unknown: trust the variable only if the firmware refuses
+	 * a rewrite of the same data. Zero attributes would delete it, so skip.
+	 */
+	if (attr && efi_rt_services_supported(EFI_RT_SUPPORTED_SET_VARIABLE)) {
+		status = efi.set_variable(uefi_var_name, guid, attr, *data_size,
+					  data);
+		if (status == EFI_WRITE_PROTECTED ||
+		    status == EFI_SECURITY_VIOLATION ||
+		    status == EFI_ACCESS_DENIED)
+			return 0;
+	}
+
+	bt_dev_dbg(hdev, "UEFI %s not trusted (writable or unprobeable)",
+		   var_name);
+	return -EPERM;
+}
+
 /*
  * UefiCnvCommonDSBR UEFI variable provides information from the OEM platforms
  * if they have replaced the BRI (Bluetooth Radio Interface) resistor to
@@ -2980,28 +3046,23 @@ static u8 btintel_classify_pkt_type(struct hci_dev *hdev, struct sk_buff *skb)
  * firmware to use default values.
  *
  */
-static int btintel_uefi_get_dsbr(u32 *dsbr_var)
+static int btintel_uefi_get_dsbr(struct hci_dev *hdev, u32 *dsbr_var)
 {
 	struct btintel_dsbr {
 		u8 header;
 		u32 dsbr;
 	} __packed data;
 
-	efi_status_t status;
 	unsigned long data_size = sizeof(data);
-	efi_guid_t guid = EFI_GUID(0xe65d8884, 0xd4af, 0x4b20, 0x8d, 0x03,
-				   0x77, 0x2e, 0xcc, 0x3d, 0xa5, 0x31);
-
-	if (!IS_ENABLED(CONFIG_EFI))
-		return -EOPNOTSUPP;
-
-	if (!efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE))
-		return -EOPNOTSUPP;
+	int err;
 
-	status = efi.get_variable(BTINTEL_EFI_DSBR, &guid, NULL, &data_size,
-				  &data);
+	err = btintel_uefi_get_verified_var(hdev, BTINTEL_EFI_DSBR, "DSBR",
+					    &btintel_efi_common_guid,
+					    &data_size, &data);
+	if (err)
+		return err;
 
-	if (status != EFI_SUCCESS || data_size != sizeof(data))
+	if (data_size != sizeof(data))
 		return -ENXIO;
 
 	*dsbr_var = data.dsbr;
@@ -3055,10 +3116,9 @@ static int btintel_set_dsbr(struct hci_dev *hdev, struct intel_version_tlv *ver)
 	}
 
 	dsbr = 0;
-	err = btintel_uefi_get_dsbr(&dsbr);
+	err = btintel_uefi_get_dsbr(hdev, &dsbr);
 	if (err < 0)
-		bt_dev_dbg(hdev, "Error reading efi: %ls  (%d)",
-			   BTINTEL_EFI_DSBR, err);
+		bt_dev_dbg(hdev, "Error reading efi: DSBR (%d)", err);
 
 	cmd.enable = dsbr & BIT(0);
 	cmd.dsbr = dsbr >> 4 & 0xF;
@@ -3179,12 +3239,16 @@ static int btintel_acpi_get_sar_lock_status(struct hci_dev *hdev, u8 *lock_statu
 
 #endif /* CONFIG_ACPI */
 
-static u8 btintel_uefi_get_sar_lock_status(struct hci_dev *hdev)
+/* GLUI is authoritative when it reports locked or test mode; otherwise a valid
+ * GLAI overrides it. Matches iwl_bios_get_guid_lock_status() in iwlwifi.
+ */
+static void btintel_get_guid_lock_status(struct hci_dev *hdev)
 {
+	struct btintel_data *data = hci_get_priv(hdev);
+	u8 lock_status = BTINTEL_UEFI_LOCK_UNKNOWN;
 	struct btintel_uefi_glui glui;
 	unsigned long size = sizeof(glui);
 	efi_status_t status;
-	u8 lock_status = BTINTEL_UEFI_LOCK_UNKNOWN;
 
 	if (IS_ENABLED(CONFIG_EFI) &&
 	    efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE)) {
@@ -3198,55 +3262,15 @@ static u8 btintel_uefi_get_sar_lock_status(struct hci_dev *hdev)
 			lock_status = glui.guid_lock_status;
 	}
 
-	if (lock_status == BTINTEL_UEFI_LOCK_LOCKED ||
-	    lock_status == BTINTEL_UEFI_LOCK_TEST_MODE)
-		return lock_status;
-
 #ifdef CONFIG_ACPI
-	if (btintel_acpi_get_sar_lock_status(hdev, &lock_status))
-		bt_dev_dbg(hdev, "Unable to determine UEFI SAR table lock status");
+	if (lock_status != BTINTEL_UEFI_LOCK_LOCKED &&
+	    lock_status != BTINTEL_UEFI_LOCK_TEST_MODE &&
+	    btintel_acpi_get_sar_lock_status(hdev, &lock_status))
+		bt_dev_dbg(hdev, "GLAI lock status unavailable");
 #endif
 
-	return lock_status;
-}
-
-static int btintel_uefi_check_sar_variable(struct hci_dev *hdev,
-					   efi_char16_t *name,
-					   struct btintel_uefi_sar *sar,
-					   u32 attributes, u8 lock_status)
-{
-	efi_status_t status;
-
-	if (lock_status == BTINTEL_UEFI_LOCK_LOCKED ||
-	    lock_status == BTINTEL_UEFI_LOCK_TEST_MODE)
-		return 0;
-
-	if (lock_status == BTINTEL_UEFI_LOCK_UNLOCKED) {
-		bt_dev_dbg(hdev, "UEFI SAR variable is not locked");
-		return -EOPNOTSUPP;
-	}
-
-	if (IS_ENABLED(CONFIG_X86) || IS_ENABLED(CONFIG_X86_64) ||
-	    IS_ENABLED(CONFIG_X86_32)) {
-		bt_dev_dbg(hdev, "UEFI SAR variable lock status is unknown");
-		return -EOPNOTSUPP;
-	}
-
-	if (!attributes || !IS_ENABLED(CONFIG_EFI) ||
-	    !efi_rt_services_supported(EFI_RT_SUPPORTED_SET_VARIABLE)) {
-		bt_dev_dbg(hdev, "Unable to verify UEFI SAR variable lock");
-		return -EOPNOTSUPP;
-	}
-
-	status = efi.set_variable(name, &btintel_efi_sar_guid, attributes,
-				  sizeof(*sar), sar);
-	if (status == EFI_WRITE_PROTECTED ||
-	    status == EFI_SECURITY_VIOLATION ||
-	    status == EFI_ACCESS_DENIED)
-		return 0;
-
-	bt_dev_dbg(hdev, "UEFI SAR variable is writable or its lock is unknown");
-	return -EOPNOTSUPP;
+	data->guid_lock_status = lock_status;
+	bt_dev_dbg(hdev, "UEFI variables lock status: %u", lock_status);
 }
 
 static int btintel_send_sar_ddc(struct hci_dev *hdev, struct btintel_cp_ddc_write *data, u8 len)
@@ -3702,78 +3726,50 @@ static int btintel_acpi_set_sar(struct hci_dev *hdev, struct intel_version_tlv *
 }
 #endif /* CONFIG_ACPI */
 
-static int btintel_uefi_read_sar(struct hci_dev *hdev, efi_char16_t *name,
-				 struct btintel_uefi_sar *sar, u32 *attributes)
+static int btintel_uefi_read_sar(struct hci_dev *hdev,
+				 efi_char16_t *uefi_var_name,
+				 const char *var_name,
+				 struct btintel_uefi_sar *sar)
 {
 	unsigned long size = sizeof(*sar);
-	efi_status_t status;
-
-	if (!IS_ENABLED(CONFIG_EFI) ||
-	    !efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE)) {
-		bt_dev_dbg(hdev, "UEFI runtime services unavailable for SAR");
-		return -EOPNOTSUPP;
-	}
+	int ret;
 
-	status = efi.get_variable(name, &btintel_efi_sar_guid, attributes,
-				  &size, sar);
-	if (status == EFI_NOT_FOUND) {
-		bt_dev_dbg(hdev, "UEFI SAR variable not found");
-		return -ENOENT;
-	}
-	if (status == EFI_BUFFER_TOO_SMALL) {
-		bt_dev_dbg(hdev, "UEFI SAR variable has unsupported size");
-		return -EOPNOTSUPP;
-	}
-	if (status != EFI_SUCCESS) {
-		bt_dev_warn(hdev, "Failed to read UEFI SAR variable: 0x%lx",
-			    status);
-		return -EIO;
-	}
+	ret = btintel_uefi_get_verified_var(hdev, uefi_var_name, var_name,
+					    &btintel_efi_sar_guid, &size, sar);
+	if (ret)
+		return ret;
 
 	if (size != sizeof(*sar)) {
-		bt_dev_dbg(hdev, "Invalid UEFI SAR variable size: %lu", size);
+		bt_dev_dbg(hdev, "Invalid UEFI %s variable size: %lu",
+			   var_name, size);
 		return -EINVAL;
 	}
 	if (sar->revision != BTINTEL_SAR_REV2) {
-		bt_dev_dbg(hdev, "Unsupported UEFI SAR revision: %u",
-			   sar->revision);
+		bt_dev_dbg(hdev, "Unsupported UEFI %s revision: %u",
+			   var_name, sar->revision);
 		return -EOPNOTSUPP;
 	}
 	if (!(le32_to_cpu(sar->mode) & BIT(0))) {
-		bt_dev_dbg(hdev, "UEFI SAR is disabled");
+		bt_dev_dbg(hdev, "UEFI %s is disabled", var_name);
 		return -EOPNOTSUPP;
 	}
 
 	return 0;
 }
 
-static int btintel_uefi_set_bpmo(struct hci_dev *hdev, u8 lock_status)
+static int btintel_uefi_set_bpmo(struct hci_dev *hdev)
 {
 	u8 buffer[sizeof(struct btintel_cp_ddc_write) +
 		  BTINTEL_BPMO_NUM_MODULATIONS];
 	struct btintel_cp_ddc_write *cmd = (void *)buffer;
 	unsigned long size = sizeof(struct btintel_bpmo);
 	struct btintel_bpmo bpmo;
-	efi_status_t status;
 	int ret;
 
-	if (lock_status != BTINTEL_UEFI_LOCK_LOCKED &&
-	    lock_status != BTINTEL_UEFI_LOCK_TEST_MODE)
-		return -EOPNOTSUPP;
-
-	if (!IS_ENABLED(CONFIG_EFI) ||
-	    !efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE))
-		return -EOPNOTSUPP;
-
-	status = efi.get_variable(BTINTEL_EFI_BPMO, &btintel_efi_sar_guid, NULL,
-				  &size, &bpmo);
-	if (status == EFI_NOT_FOUND)
-		return -ENOENT;
-	if (status != EFI_SUCCESS) {
-		bt_dev_dbg(hdev, "Failed to read UEFI BPMO variable: 0x%lx",
-			   status);
-		return -EOPNOTSUPP;
-	}
+	ret = btintel_uefi_get_verified_var(hdev, BTINTEL_EFI_BPMO, "BPMO",
+					    &btintel_efi_sar_guid, &size, &bpmo);
+	if (ret)
+		return ret;
 
 	if (size != sizeof(bpmo) || bpmo.header != 0) {
 		bt_dev_dbg(hdev, "Unsupported UEFI BPMO variable");
@@ -3821,119 +3817,93 @@ static int btintel_set_uefi_sar(struct hci_dev *hdev,
 	u8 buffer[sizeof(struct btintel_cp_ddc_write) + 2];
 	struct btintel_cp_ddc_write *cmd = (void *)buffer;
 	struct btintel_uefi_sar sar;
-	struct sk_buff *skb;
-	u32 attributes;
-	u8 lock_status;
-	u8 enable = 1;
 	int ret, i;
 
-	lock_status = btintel_uefi_get_sar_lock_status(hdev);
-	if (lock_status == BTINTEL_UEFI_LOCK_UNLOCKED ||
-	    ((IS_ENABLED(CONFIG_X86) || IS_ENABLED(CONFIG_X86_64) ||
-	      IS_ENABLED(CONFIG_X86_32)) &&
-	     lock_status == BTINTEL_UEFI_LOCK_UNKNOWN)) {
-		bt_dev_dbg(hdev, "UEFI SAR tables are not trusted");
-		return -EOPNOTSUPP;
-	}
-
-	ret = btintel_uefi_read_sar(hdev, BTINTEL_EFI_BRDS, &sar,
-				    &attributes);
-	if (ret)
-		return ret;
-
-	ret = btintel_uefi_check_sar_variable(hdev, BTINTEL_EFI_BRDS, &sar,
-					      attributes, lock_status);
+	ret = btintel_uefi_read_sar(hdev, BTINTEL_EFI_BRDS, "BRDS", &sar);
 	if (ret)
 		return ret;
 
 	/*
-	 * UEFI BRDS uses only the 2.4 GHz limits; BSSS supplies sub-band limits.
-	 * Firmware accepts this BRDS write regardless of the existing 0x019e
-	 * value, including a value previously set by the DDC configuration.
+	 * UEFI BRDS uses only the 2.4 GHz limits; BSSS supplies sub-band
+	 * limits. Firmware accepts this BRDS write regardless of the
+	 * existing 0x019e value, including one set by the DDC config.
 	 */
 	ret = btintel_send_sar_rev2_band(hdev, cmd, 0x0311,
 					 sar.chain_a[0], sar.chain_b[0]);
 	if (ret)
-		goto complete;
+		return ret;
 
 	/* Standalone limits require both BRDS and BSSS to be enabled. */
-	ret = btintel_uefi_read_sar(hdev, BTINTEL_EFI_BSSS, &sar,
-				    &attributes);
+	ret = btintel_uefi_read_sar(hdev, BTINTEL_EFI_BSSS, "BSSS", &sar);
 	if (!ret) {
-		ret = btintel_uefi_check_sar_variable(hdev, BTINTEL_EFI_BSSS,
-						      &sar, attributes,
-						      lock_status);
-		if (ret)
-			goto complete;
-
 		cmd->len = 3;
-		/* UEFI BSSS requires 0x019e = 1; inc_power_mode is not used here. */
+		/* UEFI BSSS requires 0x019e = 1; inc_power_mode is unused. */
 		cmd->id = cpu_to_le16(0x019e);
-		cmd->data[0] = enable;
+		cmd->data[0] = 0x01;
 		ret = btintel_send_sar_ddc(hdev, cmd, sizeof(*cmd) + 1);
-		if (ret)
-			goto complete;
 
 		/*
-		 * After writing 0x019e = 1, firmware interprets DDC 0x0311-0x0316
-		 * as BSSS limits.
+		 * After writing 0x019e = 1, firmware interprets DDC
+		 * 0x0311-0x0316 as BSSS limits.
 		 */
-		for (i = 0; i < ARRAY_SIZE(bands); i++) {
+		for (i = 0; !ret && i < ARRAY_SIZE(bands); i++)
 			ret = btintel_send_sar_rev2_band(hdev, cmd, bands[i].id,
 							 sar.chain_a[bands[i].band],
 							 sar.chain_b[bands[i].band]);
-			if (ret)
-				goto complete;
-		}
-	} else if (ret != -ENOENT && ret != -EOPNOTSUPP) {
-		goto complete;
-	} else {
-		ret = 0;
 	}
+	if (ret && ret != -ENOENT && ret != -ENODEV && ret != -EOPNOTSUPP &&
+	    ret != -EPERM)
+		bt_dev_warn(hdev, "UEFI BSSS setup failed (%d)", ret);
 
 	if (INTEL_CNVX_TOP_TYPE(ver->cnvr_top) >= BTINTEL_CNVR_PEP) {
-		ret = btintel_uefi_set_bpmo(hdev, lock_status);
-		if (ret == -ENOENT || ret == -EOPNOTSUPP)
-			ret = 0;
-	}
-
-complete:
-	skb = __hci_cmd_sync(hdev, 0xfe25, sizeof(enable), &enable,
-			     HCI_CMD_TIMEOUT);
-	if (IS_ERR(skb)) {
-		if (ret)
-			bt_dev_warn(hdev,
-				    "UEFI SAR setup failed (%d), completion failed (%ld)",
-				    ret, PTR_ERR(skb));
-		else
-			bt_dev_warn(hdev, "Failed to complete UEFI SAR setup (%ld)",
-				    PTR_ERR(skb));
-
-		return ret ? ret : PTR_ERR(skb);
+		ret = btintel_uefi_set_bpmo(hdev);
+		if (ret && ret != -ENOENT && ret != -ENODEV &&
+		    ret != -EOPNOTSUPP && ret != -EPERM)
+			bt_dev_warn(hdev, "UEFI BPMO setup failed (%d)", ret);
 	}
 
-	kfree_skb(skb);
-	return ret;
+	return 0;
 }
 
 static int btintel_set_specific_absorption_rate(struct hci_dev *hdev,
 						struct intel_version_tlv *ver)
 {
 	u8 hw_variant = INTEL_HW_VARIANT(ver->cnvi_bt);
+	bool sar_complete_sent = false;
+	struct sk_buff *skb;
+	u8 enable = 1;
+	int ret;
 
 	/* Supported SCP2+ platforms use this UEFI DDC map regardless of CNVr. */
-	if (hw_variant >= BTINTEL_HWID_SCP2 &&
-	    hw_variant != BTINTEL_HWID_BZRIW)
-		btintel_set_uefi_sar(hdev, ver);
+	if (hw_variant < BTINTEL_HWID_SCP2 || hw_variant == BTINTEL_HWID_BZRIW) {
+#ifdef CONFIG_ACPI
+		return btintel_acpi_set_sar(hdev, ver);
+#endif
+		return 0;
+	}
 
-	/*
-	 * Platforms with UEFI BSSS do not provide ACPI BRDS. If UEFI BRDS is
-	 * available without BSSS, let the existing ACPI BRDS path run after
-	 * this path so its later write retains the existing precedence.
-	 */
+	ret = btintel_set_uefi_sar(hdev, ver);
+	if (ret == -EPERM || ret == -ENOENT || ret == -ENODEV) {
 #ifdef CONFIG_ACPI
-	return btintel_acpi_set_sar(hdev, ver);
+		/* On SCP2+ every ACPI SAR path that succeeds sends 0xfe25 */
+		sar_complete_sent = !btintel_acpi_set_sar(hdev, ver);
 #endif
+	} else if (ret && ret != -EOPNOTSUPP) {
+		bt_dev_warn(hdev, "UEFI BRDS setup failed (%d)", ret);
+	}
+
+	if (sar_complete_sent)
+		return 0;
+
+	skb = __hci_cmd_sync(hdev, 0xfe25, sizeof(enable), &enable,
+			     HCI_CMD_TIMEOUT);
+	if (IS_ERR(skb)) {
+		bt_dev_warn(hdev, "Failed to complete UEFI SAR setup (%ld)",
+			    PTR_ERR(skb));
+		return PTR_ERR(skb);
+	}
+
+	kfree_skb(skb);
 	return 0;
 }
 
@@ -3999,6 +3969,9 @@ int btintel_bootloader_setup_tlv(struct hci_dev *hdev,
 
 	data->unlocker = false;
 
+	/* Resolve UEFI variable trust before DSBR and SAR consume them */
+	btintel_get_guid_lock_status(hdev);
+
 	/* Legacy unlocker flow (BlazarI / BlazarIW / BlazarU / Gale Peak):
 	 * Boot ROM -> unlocker.sfi -> IML -> OPFW
 	 *
diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h
index 766cd69503f6..71d91e2e3dcc 100644
--- a/drivers/bluetooth/btintel.h
+++ b/drivers/bluetooth/btintel.h
@@ -275,6 +275,7 @@ struct btintel_data {
 	DECLARE_BITMAP(flags, __INTEL_NUM_FLAGS);
 	int (*acpi_reset_method)(struct hci_dev *hdev);
 	u32 cnvi_bt;
+	u8	guid_lock_status;
 	bool	unlocker;
 };
 
-- 
2.43.0


                 reply	other threads:[~2026-12-02  9:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20261202093338.1146511-1-ravindra@intel.com \
    --to=ravindra@intel.com \
    --cc=chethan.tumkur.narayan@intel.com \
    --cc=kiran.k@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox