diff options
author | Harish Bandi <c-hbandi@codeaurora.org> | 2019-08-30 15:28:36 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-09-05 18:27:22 +0300 |
commit | 010376ab7fd788a0eddb86b6de5869b3045b97e3 (patch) | |
tree | 8f02c12da7a4bb975a9344d6887b7f28d4102727 /drivers/bluetooth/hci_qca.c | |
parent | 16946de5905fff243c1e4415c4565803945e8c47 (diff) | |
download | linux-010376ab7fd788a0eddb86b6de5869b3045b97e3.tar.xz |
Bluetooth: hci_qca: wait for Pre shutdown complete event before sending the Power off pulse
When SoC receives pre shut down command, it share the same
with other COEX shared clients. So SoC needs a short time
after sending VS pre shutdown command before turning off
the regulators and sending the power off pulse. Along with
short delay, needs to wait for command complete event for
Pre shutdown VS command
Signed-off-by: Harish Bandi <c-hbandi@codeaurora.org>
Reviewed-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_qca.c')
-rw-r--r-- | drivers/bluetooth/hci_qca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 15753f6bce80..d33828fef89f 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1375,6 +1375,8 @@ static int qca_power_off(struct hci_dev *hdev) /* Perform pre shutdown command */ qca_send_pre_shutdown_cmd(hdev); + usleep_range(8000, 10000); + qca_power_shutdown(hu); return 0; } |