[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250213070520.9308-4-tatsuya.s2862@gmail.com>
Date: Thu, 13 Feb 2025 16:05:22 +0900
From: Tatsuya S <tatsuya.s2862@...il.com>
To: Marcel Holtmann <marcel@...tmann.org>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>
Cc: Tatsuya S <tatsuya.s2862@...il.com>,
linux-bluetooth@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] Bluetooth: btbcm: Fix reset errors at setup
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@...il.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
Powered by blists - more mailing lists