[RFC PATCH v2 0/1] Bluetooth: btusb: UB500 MTU-only revision
From: Kyle Pepper
Date: Wed Oct 28 2026 - 20:14:18 EST
Hi Luiz,
> Are you sure that is the case, or did you just assume it because it
> worked?
That's my bad for not reviewing the code enough. Turns out that the forced
BR/EDR buffer selection wasn't needed, only changing the UB500's host LE
packet length from 27 to 167 bytes was.
I tested your packet-length alternative on USB 2357:0604 with Realtek
firmware 0xdfc6d922. Initialization still reports LE length 27 and eight
packets. So I removed forced BR/EDR buffer selection and changed only the
host LE length to 167, keeping the reported eight LE credits.
The 60-second single-CI playback sounded clear. The trace contains 3243
whole 167-byte audio HCI packets and 3269/3269 completed target packets,
including control traffic. Maximum outstanding was three, with zero
remaining after the transport suspended. The unchanged PipeWire socket
requested 672 bytes and received 4608; all 3243 audio sends succeeded
without EAGAIN. Increasing only that socket to 8192 with HCI length 27
previously crackled and delivered about 37 audio frames/s instead of 50.
This shows packets larger than the reported 27 bytes work without
changing host LE credit selection. I used 167 because it
was the length already demonstrated by the working ASHA stream; I have
not established if 251 or 1021-byte LE HCI support exists on this firmware.
The accompanying RFC v2 therefore replaces the shared-pool proposal
with the size-only diagnostic. It deliberately retains the TEST ONLY
log and rejects unexpected initialization values. Feedback
on determining the real limit and firmware scope would help settle that
design.
The acoustic evidence is from the existing Arch-based ASHA 7.2.9 kernel
I've been using to test this and the other patches.The mail workflow
separately refreshes bluetooth-next and builds the baseline and revised
btusb_main.o with W=1 before sending so it should all still work upstream.
Changes since v1:
- Do not clear LE packet/credit counts or select BR/EDR accounting.
- Test only host LE packet length, using the existing post_init hook.
- Remove the shared-pool/exhaustion explanation and report the limits.
These changes were assisted by an LLM.
Kyle
Kyle Pepper (1):
Bluetooth: btusb: test larger LE packets on TP-Link UB500
drivers/bluetooth/btusb_main.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
base-commit: 1081a6ef8f1e0661fd52eb3f878691b0b96cdff9
--
2.56.0