All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en
@ 2020-11-10 10:13 Xiaolei Wang
  2020-11-10 10:47 ` [v2] " bluez.test.bot
  2020-11-11  9:58 ` [PATCH v2] " Marcel Holtmann
  0 siblings, 2 replies; 3+ messages in thread
From: Xiaolei Wang @ 2020-11-10 10:13 UTC (permalink / raw)
  To: marcel; +Cc: johan.hedberg, linux-bluetooth, linux-kernel

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>
---
 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 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");
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [v2] Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en
  2020-11-10 10:13 [PATCH v2] Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en Xiaolei Wang
@ 2020-11-10 10:47 ` bluez.test.bot
  2020-11-11  9:58 ` [PATCH v2] " Marcel Holtmann
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2020-11-10 10:47 UTC (permalink / raw)
  To: linux-bluetooth, xiaolei.wang

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=381061

---Test result---

##############################
Test: CheckPatch - PASS

##############################
Test: CheckGitLint - PASS

##############################
Test: CheckBuildK - PASS



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en
  2020-11-10 10:13 [PATCH v2] Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en Xiaolei Wang
  2020-11-10 10:47 ` [v2] " bluez.test.bot
@ 2020-11-11  9:58 ` Marcel Holtmann
  1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2020-11-11  9:58 UTC (permalink / raw)
  To: Xiaolei Wang; +Cc: Johan Hedberg, linux-bluetooth, linux-kernel

Hi Xiaolei,

> 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>
> ---
> drivers/bluetooth/hci_ll.c | 1 +
> 1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-11  9:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 10:13 [PATCH v2] Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en Xiaolei Wang
2020-11-10 10:47 ` [v2] " bluez.test.bot
2020-11-11  9:58 ` [PATCH v2] " Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.