* [PATCH v1] Bluetooth: btusb: Preserve event and ACL packet ordering
@ 2026-09-29 6:45 Kiran K
2026-09-29 13:38 ` [v1] " bluez.test.bot
2026-09-29 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Kiran K @ 2026-09-29 6:45 UTC (permalink / raw)
To: linux-bluetooth; +Cc: chethan.tumkur.narayan, chandrashekar.devegowda, Kiran K
When force_poll_sync is enabled, commit 800fe5ec302e ("Bluetooth:
btusb: Add support for queuing during polling interval") defers ACL
delivery to the RX worker. The event path currently wakes that worker
before delivering the event, so queued ACL data can reach HCI first.
Deliver the event before waking the worker. This preserves the intended
event-first ordering and the event callback's return value.
Fixes: 800fe5ec302e ("Bluetooth: btusb: Add support for queuing during polling interval")
Signed-off-by: Kiran K <kiran.k@intel.com>
---
drivers/bluetooth/btusb_main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btusb_main.c b/drivers/bluetooth/btusb_main.c
index 1ede12515bcc..cccdfb0461fe 100644
--- a/drivers/bluetooth/btusb_main.c
+++ b/drivers/bluetooth/btusb_main.c
@@ -1311,13 +1311,16 @@ static inline void btusb_free_frags(struct btusb_data *data)
static int btusb_recv_event(struct hci_dev *hdev, struct sk_buff *skb)
{
struct btusb_data *data = hci_get_drvdata(hdev);
+ int err;
+
+ err = data->recv_event(hdev, skb);
if (data->intr_interval) {
/* Trigger dequeue immediately if an event is received */
schedule_delayed_work(&data->rx_work, 0);
}
- return data->recv_event(hdev, skb);
+ return err;
}
static int btusb_recv_intr(struct btusb_data *data, void *buffer, int count)
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [v1] Bluetooth: btusb: Preserve event and ACL packet ordering
2026-09-29 6:45 [PATCH v1] Bluetooth: btusb: Preserve event and ACL packet ordering Kiran K
@ 2026-09-29 13:38 ` bluez.test.bot
2026-09-29 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-09-29 13:38 UTC (permalink / raw)
To: linux-bluetooth, kiran.k
[-- Attachment #1: Type: text/plain, Size: 1019 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/1175800/
---Test result---
Test Summary:
CheckPatch PASS 0.69 seconds
VerifyFixes PASS 0.11 seconds
VerifySignedoff PASS 0.12 seconds
GitLint PASS 0.29 seconds
SubjectPrefix PASS 0.10 seconds
BuildKernel PASS 29.29 seconds
CheckAllWarning PASS 33.41 seconds
CheckSparse PASS 36.09 seconds
BuildKernel32 PASS 29.29 seconds
CheckKernelLLVM PASS 37.93 seconds
TestRunnerSetup PASS 788.66 seconds
IncrementalBuild PASS 34.38 seconds
https://github.com/bluez/bluetooth-next/pull/838
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: btusb: Preserve event and ACL packet ordering
2026-09-29 6:45 [PATCH v1] Bluetooth: btusb: Preserve event and ACL packet ordering Kiran K
2026-09-29 13:38 ` [v1] " bluez.test.bot
@ 2026-09-29 15:20 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-09-29 15:20 UTC (permalink / raw)
To: Kiran K; +Cc: linux-bluetooth, chethan.tumkur.narayan, chandrashekar.devegowda
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 29 Sep 2026 12:15:56 +0530 you wrote:
> When force_poll_sync is enabled, commit 800fe5ec302e ("Bluetooth:
> btusb: Add support for queuing during polling interval") defers ACL
> delivery to the RX worker. The event path currently wakes that worker
> before delivering the event, so queued ACL data can reach HCI first.
>
> Deliver the event before waking the worker. This preserves the intended
> event-first ordering and the event callback's return value.
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: btusb: Preserve event and ACL packet ordering
https://git.kernel.org/bluetooth/bluetooth-next/c/08c3c483047d
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-09-29 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-29 6:45 [PATCH v1] Bluetooth: btusb: Preserve event and ACL packet ordering Kiran K
2026-09-29 13:38 ` [v1] " bluez.test.bot
2026-09-29 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.