Commit 16946de5 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Marcel Holtmann

bluetooth: hci_bcm: Give more time to come out of reset

Some supported devices need more time to come out of reset (eg.
BCM4345C5 in AP6256).

I don't have/found a datasheet, so the value was arrive at
experimentally with the Oprange Pi 3 board. Without increased delay,
I got intermittent failures during probe. This is a Bluetooth 5.0
device, so maybe that's why it takes longer to initialize than the
others.
Signed-off-by: default avatarOndrej Jirman <megous@megous.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 52c8c7a7
...@@ -260,7 +260,7 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered) ...@@ -260,7 +260,7 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered)
} }
/* wait for device to power on and come out of reset */ /* wait for device to power on and come out of reset */
usleep_range(10000, 20000); usleep_range(100000, 120000);
dev->res_enabled = powered; dev->res_enabled = powered;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment