summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRocky Liao <quic_rjliao@quicinc.com>2023-08-07 14:46:26 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-09-20 10:55:29 -0700
commit187f8b648cc16f07c66ab1d89d961bdcff779bf7 (patch)
treeab0e3c10905dae7c12a58dd2147d677d3cd0a2a7
parentcbaabbcdcbd355f0a1ccc09a925575c51c270750 (diff)
Bluetooth: btusb: add shutdown function for QCA6174
We should send hci reset command before bt turn off, which can reset bt firmware status. Signed-off-by: Rocky Liao <quic_rjliao@quicinc.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-rw-r--r--drivers/bluetooth/btusb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 82597ab4f747..499f4809fcdf 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -4419,6 +4419,7 @@ static int btusb_probe(struct usb_interface *intf,
if (id->driver_info & BTUSB_QCA_ROME) {
data->setup_on_usb = btusb_setup_qca;
+ hdev->shutdown = btusb_shutdown_qca;
hdev->set_bdaddr = btusb_set_bdaddr_ath3012;
hdev->cmd_timeout = btusb_qca_cmd_timeout;
set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);