Linux bluetooth development
 help / color / mirror / Atom feed
From: Ajay KV <ajay.k.v@intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: chandrashekar.devegowda@intel.com, kiran.k@intel.com,
	linux-kernel@vger.kernel.org, luiz.dentz@gmail.com,
	marcel@holtmann.org, stable@vger.kernel.org,
	chethan.tumkur.narayan@intel.com, lakshmipathi.k@intel.com,
	Ajay KV <ajay.k.v@intel.com>
Subject: [PATCH v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO
Date: Fri,  4 Dec 2026 12:29:21 +0530	[thread overview]
Message-ID: <20261204065921.108324-1-ajay.k.v@intel.com> (raw)

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


             reply	other threads:[~2026-12-04  6:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:59 Ajay KV [this message]
2026-12-04 14:19 ` [v1] Bluetooth: btintel_pcie: Rename yoyo enable flag to ENABLE_YOYO bluez.test.bot
2026-12-04 20:40 ` [PATCH v1] " patchwork-bot+bluetooth

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=20261204065921.108324-1-ajay.k.v@intel.com \
    --to=ajay.k.v@intel.com \
    --cc=chandrashekar.devegowda@intel.com \
    --cc=chethan.tumkur.narayan@intel.com \
    --cc=kiran.k@intel.com \
    --cc=lakshmipathi.k@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=stable@vger.kernel.org \
    /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