diff options
author | Xiaolei Wang <xiaolei.wang@windriver.com> | 2020-11-10 11:13:11 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-11-11 10:57:36 +0100 |
commit | 844c79bd5995185cf1ab56e4eae9dd9e50204aeb (patch) | |
tree | 21246e012cbaf0d29fa1e736dad82504cc0ad272 /drivers/bluetooth/hci_ll.c | |
parent | Bluetooth: btusb: Add support for 1358:c123 Realtek 8822CE device (diff) | |
download | linux-844c79bd5995185cf1ab56e4eae9dd9e50204aeb.tar.xz linux-844c79bd5995185cf1ab56e4eae9dd9e50204aeb.zip |
Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en
When using the wl1271 Bluetooth function of am335x, it is found that the
Bluetooth module cannot respond in time after Bluetooth is enabled, and
a small delay is needed to work normally, so whether to add a small
mdelay.
Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_ll.c')
-rw-r--r-- | drivers/bluetooth/hci_ll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c index 8bfe024d1fcd..eb1e736efeeb 100644 --- a/drivers/bluetooth/hci_ll.c +++ b/drivers/bluetooth/hci_ll.c @@ -626,6 +626,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); + mdelay(100); err = serdev_device_wait_for_cts(serdev, true, 200); if (err) { bt_dev_err(hu->hdev, "Failed to get CTS"); |