]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Add support for queuing during polling interval
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Dec 2021 22:38:13 +0000 (14:38 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:51 +0000 (17:05 +0100)
commitb1edf6c5a2ff5b6a16ba02bda1e51cf9180cc4c5
tree8d265d3db17c9eade894131c421ddd43c5aa42a4
parent36dce6110150935c8956d4a03fa0f8a0d44e041d
Bluetooth: btusb: Add support for queuing during polling interval

This makes btusb to queue ACL and events during a polling interval
by using of a delayed work, with the interval working as a time window
where frames received from different endpoints are considered to be
arrived at same time and then attempt to resolve potential conflics by
processing the events ahead of ACL packets.

It worth noting though that priorizing events over ACL data may result
in inverting the order compared to how they appeared over the air, for
instance there may be packets received before a disconnect event that
will be discarded and unencrypted packets received before encryption
change which would considered encrypted, because of these potential
changes on the order the support for queuing during the polling
interval is not enabled by default so it requires setting
force_poll_sync debugfs while the adapter is down.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c