From 68ae0611e2f64cd5b95dbd7654b286a1de9ca0b1 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 12 Mar 2018 16:13:57 +0100 Subject: [PATCH] Bluetooth: hci_ll: Extend timeout between start and communication Extend timeout between bt enable and communication with chip. Flow control is automatic and driver is responding that device is ready to accept messages but it doesn't need to be truth. Wait more time to ensure that communication cat start. Signed-off-by: Michal Simek --- drivers/bluetooth/hci_ll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c index 9de106f6b8e1..0fb41be8e7e9 100644 --- a/drivers/bluetooth/hci_ll.c +++ b/drivers/bluetooth/hci_ll.c @@ -704,6 +704,7 @@ static int ll_setup(struct hci_uart *hu) gpiod_set_value_cansleep(lldev->enable_gpio, 0); msleep(5); gpiod_set_value_cansleep(lldev->enable_gpio, 1); + msleep(500); err = serdev_device_wait_for_cts(serdev, true, 200); if (err) { bt_dev_err(hu->hdev, "Failed to get CTS"); -- 2.39.2