| From 829056195e3e6e684ca8d81f1758f56c9af2adf9 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Mon, 7 Aug 2023 14:46:26 +0800 |
| Subject: Bluetooth: btusb: add shutdown function for QCA6174 |
| |
| From: Rocky Liao <quic_rjliao@quicinc.com> |
| |
| [ Upstream commit 187f8b648cc16f07c66ab1d89d961bdcff779bf7 ] |
| |
| 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> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/bluetooth/btusb.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c |
| index dfdfb72d350fe..ca9e2a210fff2 100644 |
| --- a/drivers/bluetooth/btusb.c |
| +++ b/drivers/bluetooth/btusb.c |
| @@ -4348,6 +4348,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); |
| -- |
| 2.40.1 |
| |