Bluetooth: btusb: Introduce generic USB reset
authorArchie Pusaka <apusaka@chromium.org>
Thu, 6 Oct 2022 09:09:31 +0000 (17:09 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:23 +0000 (14:19 -0800)
commitc9209b269afd29c55b8be49916725ed469f8c5d9
tree8f13df536d1015caae00aa9e784c5cdd1d5c014b
parentf9c5cbd52c62f2fa9d2dfbe1af8fb00e5056aefe
Bluetooth: btusb: Introduce generic USB reset

On cmd_timeout with no reset_gpio, reset the USB port as a last
resort.

This patch changes the behavior of btusb_intel_cmd_timeout and
btusb_rtl_cmd_timeout.

Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@google.com>
Reviewed-by: Ying Hsu <yinghsu@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c
include/net/bluetooth/hci_core.h