* [PATCH v1] Bluetooth: btnxpuart: Fix glitches seen in dual A2DP streaming
@ 2025-01-20 14:19 Neeraj Sanjay Kale
2025-01-23 18:30 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 2+ messages in thread
From: Neeraj Sanjay Kale @ 2025-01-20 14:19 UTC (permalink / raw)
To: marcel, luiz.dentz, ilpo.jarvinen
Cc: linux-bluetooth, linux-kernel, amitkumar.karwar,
neeraj.sanjaykale, sherry.sun, ziniu.wang_1
This fixes a regression caused by previous commit for fixing truncated
ACL data, which is causing some intermittent glitches when running two
A2DP streams.
serdev_device_write_buf() is the root cause of the glitch, which is
reverted, and the TX work will continue to write until the queue is empty.
This change fixes both issues. No A2DP streaming glitches or truncated
ACL data issue observed.
Fixes: 8023dd220425 ("Bluetooth: btnxpuart: Fix driver sending truncated data")
Fixes: 689ca16e5232 ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets")
Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
---
drivers/bluetooth/btnxpuart.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 1230045d78a5..aa5ec1d444a9 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -1381,13 +1381,12 @@ static void btnxpuart_tx_work(struct work_struct *work)
while ((skb = nxp_dequeue(nxpdev))) {
len = serdev_device_write_buf(serdev, skb->data, skb->len);
- serdev_device_wait_until_sent(serdev, 0);
hdev->stat.byte_tx += len;
skb_pull(skb, len);
if (skb->len > 0) {
skb_queue_head(&nxpdev->txq, skb);
- break;
+ continue;
}
switch (hci_skb_pkt_type(skb)) {
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v1] Bluetooth: btnxpuart: Fix glitches seen in dual A2DP streaming
2025-01-20 14:19 [PATCH v1] Bluetooth: btnxpuart: Fix glitches seen in dual A2DP streaming Neeraj Sanjay Kale
@ 2025-01-23 18:30 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+bluetooth @ 2025-01-23 18:30 UTC (permalink / raw)
To: Neeraj Sanjay Kale
Cc: marcel, luiz.dentz, ilpo.jarvinen, linux-bluetooth, linux-kernel,
amitkumar.karwar, sherry.sun, ziniu.wang_1
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 20 Jan 2025 19:49:46 +0530 you wrote:
> This fixes a regression caused by previous commit for fixing truncated
> ACL data, which is causing some intermittent glitches when running two
> A2DP streams.
>
> serdev_device_write_buf() is the root cause of the glitch, which is
> reverted, and the TX work will continue to write until the queue is empty.
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: btnxpuart: Fix glitches seen in dual A2DP streaming
https://git.kernel.org/bluetooth/bluetooth-next/c/52f17be9931e
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] 2+ messages in thread
end of thread, other threads:[~2025-01-23 18:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-20 14:19 [PATCH v1] Bluetooth: btnxpuart: Fix glitches seen in dual A2DP streaming Neeraj Sanjay Kale
2025-01-23 18:30 ` 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
all inboxes | Powered by JetHome®