All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btbcm: Fix reset errors at setup
@ 2025-02-13  7:05 Tatsuya S
  2025-02-13  7:53 ` bluez.test.bot
  0 siblings, 1 reply; 2+ messages in thread
From: Tatsuya S @ 2025-02-13  7:05 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz
  Cc: Tatsuya S, linux-bluetooth, linux-kernel

After the Bluetooth USB controller is connected, error may occur
on the first reset HCI command.

[    5.678408] Bluetooth: hci0: command 0x0c03 tx timeout
[    5.678435] Bluetooth: hci0: BCM: Reset failed (-110)
[   18.030627] usb 1-8: Failed to suspend device, error -110

To reduce this error, insert a little sleep for warmup.

Signed-off-by: Tatsuya S <tatsuya.s2862@gmail.com>
---
 drivers/bluetooth/btbcm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 0a60660fc8ce..026d8571adf5 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -733,6 +733,9 @@ int btbcm_setup_apple(struct hci_dev *hdev)
 	struct sk_buff *skb;
 	int err;
 
+	/* Waiting for hardware warmup */
+	msleep(200);
+
 	/* Reset */
 	err = btbcm_reset(hdev);
 	if (err)
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-13  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13  7:05 [PATCH] Bluetooth: btbcm: Fix reset errors at setup Tatsuya S
2025-02-13  7:53 ` bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.