diff mbox series

[v1] Bluetooth: btusb: add shutdown function for QCA6174

Message ID 20230807064626.980-1-quic_rjliao@quicinc.com
State Accepted
Commit 187f8b648cc16f07c66ab1d89d961bdcff779bf7
Headers show
Series [v1] Bluetooth: btusb: add shutdown function for QCA6174 | expand

Commit Message

Rocky Liao Aug. 7, 2023, 6:46 a.m. UTC
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>
---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rocky Liao Aug. 28, 2023, 6:11 a.m. UTC | #1
Hi Maintainers,

Could you please help to merge this patch?

Thanks,
Rocky
-----Original Message-----
From: Rocky Liao (QUIC) <quic_rjliao@quicinc.com> 
Sent: Monday, August 7, 2023 2:46 PM
To: marcel@holtmann.org
Cc: linux-kernel@vger.kernel.org; linux-bluetooth@vger.kernel.org; linux-arm-msm@vger.kernel.org; Rocky Liao (QUIC) <quic_rjliao@quicinc.com>
Subject: [PATCH v1] 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>
---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 1bb3b09013b0..ac4d8cf831df 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);
--
2.38.1.windows.1
patchwork-bot+bluetooth@kernel.org Aug. 28, 2023, 9:30 p.m. UTC | #2
Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon, 7 Aug 2023 14:46:26 +0800 you wrote:
> 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>
> ---
>  drivers/bluetooth/btusb.c | 1 +
>  1 file changed, 1 insertion(+)

Here is the summary with links:
  - [v1] Bluetooth: btusb: add shutdown function for QCA6174
    https://git.kernel.org/bluetooth/bluetooth-next/c/75d095daab9f

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 1bb3b09013b0..ac4d8cf831df 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);