]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Cancel sync commands for certain URB errors
authorBenjamin Berg <bberg@redhat.com>
Fri, 3 Dec 2021 14:59:02 +0000 (15:59 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Dec 2021 18:41:59 +0000 (10:41 -0800)
commit8f327324eda7cba2353fb755a39b0014a92ee63b
tree9b720088b82a16bfcabb17ed8bb529091f7e1ba8
parent889e8be1e215cdb86475f7a1c7613f677ca0a4dc
Bluetooth: btusb: Cancel sync commands for certain URB errors

Cancel sync commands when transmission of URBs fail. This is done for
both failures to send a command URB and also when the interrupt URB used
to retrieve a response fails.

This approach is sufficient to quickly deal with certain errors such as
a device being disconnected while synchronous commands are done during
initialization.

Signed-off-by: Benjamin Berg <bberg@redhat.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c