• Luiz Augusto von Dentz's avatar
    Bluetooth: btusb: Add support for queuing during polling interval · 800fe5ec
    Luiz Augusto von Dentz authored
    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: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    800fe5ec
btusb.c 107 KB