]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: Add ncmd=0 recovery handling
authorManish Mandlik <mmandlik@google.com>
Thu, 29 Apr 2021 17:24:22 +0000 (10:24 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 7 May 2021 19:21:16 +0000 (21:21 +0200)
commit56ce20a664a7489f8a59bc0b796557cb3ef5c549
tree4d31ab7b4fb4e0798d4d4d66045445202e0983fe
parent183dce5a7fd3040ced6a220b0aa536c926f10cd9
Bluetooth: Add ncmd=0 recovery handling

During command status or command complete event, the controller may set
ncmd=0 indicating that it is not accepting any more commands. In such a
case, host holds off sending any more commands to the controller. If the
controller doesn't recover from such condition, host will wait forever,
until the user decides that the Bluetooth is broken and may power cycles
the Bluetooth.

This patch triggers the hardware error to reset the controller and
driver when it gets into such state as there is no other wat out.

Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Manish Mandlik <mmandlik@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c