Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO
@ 2026-12-04  6:59 Ajay KV
  2026-12-04 14:19 ` [v1] " bluez.test.bot
  2026-12-04 20:40 ` [PATCH v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Ajay KV @ 2026-12-04  6:59 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: chandrashekar.devegowda, kiran.k, linux-kernel, luiz.dentz,
	marcel, stable, chethan.tumkur.narayan, lakshmipathi.k, Ajay KV

The debug INI file gates the yoyo framework behind a key named
ENABLE_INI, which says where the setting comes from rather than what
it turns on, and so reads as if it enabled the INI file itself. The
other keys in that file name their target. Rename it, and the driver
state behind it, to ENABLE_YOYO so the name matches the feature it
controls. The same loader parses the file and the accepted values are
unchanged. ENABLE_INI was added in this development cycle and has not
been released, so no alias is kept.

Signed-off-by: Ajay KV <ajay.k.v@intel.com>
---
 drivers/bluetooth/btintel_pcie.c       |  4 ++--
 drivers/bluetooth/btintel_pcie.h       |  2 +-
 drivers/bluetooth/btintel_pcie_debug.c | 28 +++++++++++++-------------
 3 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index ab24c3c75f1b..03a1654a0766 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -5359,7 +5359,7 @@ static int btintel_pcie_probe(struct pci_dev *pdev,
 	data->log_mask = BTINTEL_PCIE_LOG_ALIVE_INTR | BTINTEL_PCIE_LOG_SX;
 	btintel_pcie_fatal_err_init(data);
 	data->pcie_alloc_init = false;
-	data->enable_ini = false;
+	data->enable_yoyo = false;
 	btintel_pcie_yoyo_init(&data->yoyo);
 	/* FLR can be invoked by echoing to debugfs path, so explicitly
 	 * initialized
@@ -5375,7 +5375,7 @@ static int btintel_pcie_probe(struct pci_dev *pdev,
 	pcie_configured = true;
 
 	pci_set_drvdata(pdev, data);
-	if (data->enable_ini) {
+	if (data->enable_yoyo) {
 		err = btintel_pcie_yoyo_load_and_parse(&data->yoyo, &pdev->dev);
 		if (err) {
 			BT_WARN("YoYo (BDF - %s): yoyo is not configured (%d)",
diff --git a/drivers/bluetooth/btintel_pcie.h b/drivers/bluetooth/btintel_pcie.h
index 8a2c424c9b9e..f4e804e133b7 100644
--- a/drivers/bluetooth/btintel_pcie.h
+++ b/drivers/bluetooth/btintel_pcie.h
@@ -857,7 +857,7 @@ struct btintel_pcie_data {
 	u32	img_resp_cache;
 	u32	dbg_path_cache;
 	u32	log_mask;
-	bool	enable_ini;
+	bool	enable_yoyo;
 	struct btintel_pcie_fatal_err_cfg fatal_err;
 	struct btintel_pcie_yoyo_ctx yoyo;
 
diff --git a/drivers/bluetooth/btintel_pcie_debug.c b/drivers/bluetooth/btintel_pcie_debug.c
index 24dbe087a3dd..47ceb422b7ed 100644
--- a/drivers/bluetooth/btintel_pcie_debug.c
+++ b/drivers/bluetooth/btintel_pcie_debug.c
@@ -62,16 +62,16 @@ static char *btintel_pcie_ini_next(char **cursor, char **key)
 	return NULL;
 }
 
-/* Loads optional "DBG_PATH=<value>", "ENABLE_INI=<value>" and
+/* Loads optional "DBG_PATH=<value>", "ENABLE_YOYO=<value>" and
  * "LOG_MASK=<value>" overrides from BTINTEL_PCIE_DBG_INI_FILE and applies
- * them to data->dbg_path_cache, data->enable_ini and data->log_mask.
+ * them to data->dbg_path_cache, data->enable_yoyo and data->log_mask.
  *
  * DBG_PATH accepts BTINTEL_PCIE_WIFI_DBGC (0x06, default) and
  * BTINTEL_PCIE_DRAM (0x01, legacy); an invalid or missing entry leaves
  * the cached value set by the caller unchanged.
  *
- * ENABLE_INI accepts 1 (enabled) or 0 (disabled); an invalid or missing
- * entry leaves data->enable_ini unchanged.
+ * ENABLE_YOYO accepts 1 (enabled) or 0 (disabled); an invalid or missing
+ * entry leaves data->enable_yoyo unchanged.
  *
  * LOG_MASK accepts any u32 bitmask (see BTINTEL_PCIE_DUMP_TX and friends).
  * The default enables alive interrupt and Sx logging; an invalid or missing
@@ -90,7 +90,7 @@ void btintel_pcie_load_dbg_path_from_ini(struct btintel_pcie_data *data)
 		       ini_file, PTR_ERR(buf), data->dbg_path_cache,
 		       data->log_mask);
 		if (data->dbg_path_cache != BTINTEL_PCIE_DRAM)
-			data->enable_ini = false;
+			data->enable_yoyo = false;
 		return;
 	}
 
@@ -122,28 +122,28 @@ void btintel_pcie_load_dbg_path_from_ini(struct btintel_pcie_data *data)
 				BT_WARN("Invalid LOG_MASK='%s' in %s, using log_mask=0x%08x",
 					val, ini_file, data->log_mask);
 			}
-		} else if (!strcasecmp(key, "ENABLE_INI")) {
-			BT_INFO("Read ENABLE_INI from %s: '%s'", ini_file, val);
+		} else if (!strcasecmp(key, "ENABLE_YOYO")) {
+			BT_INFO("Read ENABLE_YOYO from %s: '%s'", ini_file, val);
 			if (!kstrtouint(val, 0, &parsed) && parsed <= 1) {
-				data->enable_ini = !!parsed;
-				BT_INFO("WRT enable_ini accepted: %u",
-					data->enable_ini);
+				data->enable_yoyo = !!parsed;
+				BT_INFO("WRT enable_yoyo accepted: %u",
+					data->enable_yoyo);
 			} else {
-				BT_WARN("Invalid ENABLE_INI='%s' in %s, using enable_ini=%u",
-					val, ini_file, data->enable_ini);
+				BT_WARN("Invalid ENABLE_YOYO='%s' in %s, using enable_yoyo=%u",
+					val, ini_file, data->enable_yoyo);
 			}
 		}
 	}
 
 	if (data->dbg_path_cache != BTINTEL_PCIE_DRAM)
-		data->enable_ini = false;
+		data->enable_yoyo = false;
 
 	if (dbg_path_applied)
 		BT_DBG("Loaded dbg_path=0x%02x from %s", data->dbg_path_cache, ini_file);
 	else
 		BT_WARN("No valid DBG_PATH in %s, dbg_path=0x%02x", ini_file, data->dbg_path_cache);
 
-	BT_DBG("ENABLE_INI effective state: %u", data->enable_ini);
+	BT_DBG("ENABLE_YOYO effective state: %u", data->enable_yoyo);
 
 	if (log_mask_applied)
 		BT_DBG("Loaded log_mask=0x%08x from %s", data->log_mask, ini_file);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO
  2026-12-04  6:59 [PATCH v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO Ajay KV
@ 2026-12-04 14:19 ` bluez.test.bot
  2026-12-04 20:40 ` [PATCH v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-12-04 14:19 UTC (permalink / raw)
  To: linux-bluetooth, ajay.k.v

[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1231595/

---Test result---

Test Summary:
CheckPatch                    PASS      0.82 seconds
VerifyFixes                   PASS      0.10 seconds
VerifySignedoff               PASS      0.09 seconds
GitLint                       PASS      0.26 seconds
SubjectPrefix                 PASS      0.09 seconds
BuildKernel                   PASS      20.73 seconds
CheckAllWarning               PASS      23.38 seconds
CheckSparse                   PASS      24.43 seconds
BuildKernel32                 PASS      20.47 seconds
CheckKernelLLVM               PASS      20.25 seconds
TestRunnerSetup               PASS      480.62 seconds
IncrementalBuild              PASS      20.00 seconds



https://github.com/bluez/bluetooth-next/pull/1287

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO
  2026-12-04  6:59 [PATCH v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO Ajay KV
  2026-12-04 14:19 ` [v1] " bluez.test.bot
@ 2026-12-04 20:40 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-12-04 20:40 UTC (permalink / raw)
  To: Ajay KV
  Cc: linux-bluetooth, chandrashekar.devegowda, kiran.k, linux-kernel,
	luiz.dentz, marcel, stable, chethan.tumkur.narayan,
	lakshmipathi.k

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Fri,  4 Dec 2026 12:29:21 +0530 you wrote:
> The debug INI file gates the yoyo framework behind a key named
> ENABLE_INI, which says where the setting comes from rather than what
> it turns on, and so reads as if it enabled the INI file itself. The
> other keys in that file name their target. Rename it, and the driver
> state behind it, to ENABLE_YOYO so the name matches the feature it
> controls. The same loader parses the file and the accepted values are
> unchanged. ENABLE_INI was added in this development cycle and has not
> been released, so no alias is kept.
> 
> [...]

Here is the summary with links:
  - [v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO
    https://git.kernel.org/bluetooth/bluetooth-next/c/a93c35c09342

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  6:59 [PATCH v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO Ajay KV
2026-12-04 14:19 ` [v1] " bluez.test.bot
2026-12-04 20:40 ` [PATCH v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox