From: Rocky Liao Date: Mon, 7 Aug 2023 06:46:26 +0000 (+0800) Subject: Bluetooth: btusb: add shutdown function for QCA6174 X-Git-Tag: v6.6-rc5~22^2~38^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=187f8b648cc16f07c66ab1d89d961bdcff779bf7;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Luiz Augusto von Dentz --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 82597ab4f747b..499f4809fcdf3 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);