Bluetooth: hci_qca: Add delay after power-off pulse
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 26 Feb 2019 19:46:47 +0000 (11:46 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 27 Feb 2019 07:44:33 +0000 (08:44 +0100)
commit0ebcddd8e06e94e476f4718af238e9ae67531b04
treee6ad64e9d014cb203292792231d8c2f942184f41
parentad571d725c9786a138d663fb26ae91d84e705900
Bluetooth: hci_qca: Add delay after power-off pulse

During initialization the power-on pulse is currently sent inmediately
after the prior power-off pulse. With this initialization often fails
at boot time:

[   15.205224] Bluetooth: hci0: setting up wcn3990
[   17.341062] Bluetooth: hci0: command 0xfc00 tx timeout
[   22.101453] ERROR: Bluetooth initialization failed
[   25.337740] Bluetooth: hci0: Reading QCA version information failed (-110)

After a power-off pulse wait 10ms to give the controller time to power
off. Remove the previous short settling delay, it isn't needed anymore.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c