[PATCH] Bluetooth: btbcm: Fix reset errors at setup
From: Tatsuya S
Date: Thu Feb 13 2025 - 02:25:53 EST
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@xxxxxxxxx>
---
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