[PATCH] Bluetooth: btbcm: Fix reset errors at setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux