Bluetooth: hci_qca: wait for Pre shutdown complete event before sending the Power...
authorHarish Bandi <c-hbandi@codeaurora.org>
Fri, 30 Aug 2019 12:28:36 +0000 (17:58 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Sep 2019 15:27:22 +0000 (17:27 +0200)
commit010376ab7fd788a0eddb86b6de5869b3045b97e3
tree8f02c12da7a4bb975a9344d6887b7f28d4102727
parent16946de5905fff243c1e4415c4565803945e8c47
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>
drivers/bluetooth/btqca.c
drivers/bluetooth/hci_qca.c