Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xiaolei Wang and committed by
Marcel Holtmann
844c79bd f496297e

+1
+1
drivers/bluetooth/hci_ll.c
··· 626 626 gpiod_set_value_cansleep(lldev->enable_gpio, 0); 627 627 msleep(5); 628 628 gpiod_set_value_cansleep(lldev->enable_gpio, 1); 629 + mdelay(100); 629 630 err = serdev_device_wait_for_cts(serdev, true, 200); 630 631 if (err) { 631 632 bt_dev_err(hu->hdev, "Failed to get CTS");