Bluetooth: btusb: add shutdown function for QCA6174
authorRocky Liao <quic_rjliao@quicinc.com>
Mon, 7 Aug 2023 06:46:26 +0000 (14:46 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 20 Sep 2023 17:55:29 +0000 (10:55 -0700)
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>
drivers/bluetooth/btusb.c

index 82597ab4f747bb6fd0796bf1ab2a781962677ac4..499f4809fcdf3d507dfe33399483762569c8c725 100644 (file)
@@ -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);