From: Yang Li via B4 Relay <devnull+yang.li.amlogic.com@kernel.org>
To: Marcel Holtmann <marcel@holtmann.org>,
Johan Hedberg <johan.hedberg@gmail.com>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
Yang Li <yang.li@amlogic.com>
Subject: [PATCH] Bluetooth: hci_event: Hold PA sync conn when BIG sync established
Date: Wed, 02 Jul 2025 11:12:12 +0800 [thread overview]
Message-ID: <20250702-hold_pa_sync-v1-1-3cbdd2c29c41@amlogic.com> (raw)
From: Yang Li <yang.li@amlogic.com>
Hold PA sync connection to prevent cleanup during hci_conn_timeout.
Signed-off-by: Yang Li <yang.li@amlogic.com>
---
net/bluetooth/hci_event.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index e817c4a77f97..85ae1608e028 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -6968,6 +6968,9 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
if (!ev->status) {
conn->state = BT_CONNECTED;
+ /* Prevent cleanup in hci_conn_timeout. */
+ hci_conn_hold(conn);
+
set_bit(HCI_CONN_BIG_SYNC, &bis->flags);
hci_debugfs_create_conn(conn);
hci_conn_add_sysfs(conn);
---
base-commit: 3bc46213b81278f3a9df0324768e152de71eb9fe
change-id: 20250702-hold_pa_sync-91ca7a81adf0
Best regards,
--
Yang Li <yang.li@amlogic.com>
next reply other threads:[~2025-07-02 3:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 3:12 Yang Li via B4 Relay [this message]
2025-07-02 13:00 ` Luiz Augusto von Dentz
2025-07-03 8:44 ` Yang Li
2025-07-03 13:21 ` Luiz Augusto von Dentz
2025-07-03 14:11 ` Luiz Augusto von Dentz
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=20250702-hold_pa_sync-v1-1-3cbdd2c29c41@amlogic.com \
--to=devnull+yang.li.amlogic.com@kernel.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=yang.li@amlogic.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
all inboxes | Powered by JetHome®