]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: btnxpuart: Fix driver sending truncated data
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Fri, 20 Dec 2024 13:02:52 +0000 (18:32 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Jan 2025 16:14:02 +0000 (11:14 -0500)
commit8023dd2204254a70887f5ee58d914bf70a060b9d
treec6261044f46e384fa13ac1dfc97a299dc06097f6
parenta182d9c84f9c52fb5db895ecceeee8b3a1bf661e
Bluetooth: btnxpuart: Fix driver sending truncated data

This fixes the apparent controller hang issue seen during stress test
where the host sends a truncated payload, followed by HCI commands. The
controller treats these HCI commands as a part of previously truncated
payload, leading to command timeouts.

Adding a serdev_device_wait_until_sent() call after
serdev_device_write_buf() fixed the issue.

Fixes: 689ca16e5232 ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets")
Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c