]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_bcm: Wait for device to come out of reset after power on
authorChen-Yu Tsai <wens@csie.org>
Mon, 17 Dec 2018 04:04:44 +0000 (12:04 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Dec 2018 23:28:39 +0000 (00:28 +0100)
commitf7105d5b9f87a1a901dd60ce542af7da2859661d
treec8cb0e68ead4e4fae9abfe1609930e3ec8586141
parent27330d675dfd61c71cbdd4376346dd2159c7548e
Bluetooth: hci_bcm: Wait for device to come out of reset after power on

The datasheets for BCM20702 and BCM43438 both have power up time
sequence graphs, however they are slightly different. Both chips
also have an internal power-on-reset, which holds the chip in reset
for a short time after the regulators are enabled.

For the BCM20702, the time period from when the regulators are enabled,
until the chip settles and comes out of sleep state, is 6564 ~ 8171 us.

For the BCM43438, the graph only shows the time period from when the
regulators are enabled until the chip responds by driving the host's
CTS line low, assuming the host has already driven its RTS line low.
This is shown to be 6.5 sleep cycles, with the sleep clock at 32.768
kHz. This is around 2 ms.

Wait a full 10 ms after the regulators are enabled to account for signal
rising times.

Tested-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c