Bluetooth: hci_qca: Wait for timeout during suspend
authorVenkata Lakshmi Narayana Gubba <gubbaven@codeaurora.org>
Tue, 6 Oct 2020 15:20:21 +0000 (20:50 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Nov 2020 11:07:54 +0000 (12:07 +0100)
commit2be43abac5a839d44bf9d14716573ae0ac920f2b
tree9938e7f0ae66469b16780f619bb30ebc43cc41a5
parentf5e8e215869eed6163d5fdd309f0e674a0f23df6
Bluetooth: hci_qca: Wait for timeout during suspend

Currently qca_suspend() is relied on IBS mechanism. During
FW download and memory dump collections, IBS will be disabled.
In those cases, driver will allow suspend and still uses the
serdev port, which results to errors. Now added a wait timeout
if suspend is triggered during FW download and memory collections.

Signed-off-by: Venkata Lakshmi Narayana Gubba <gubbaven@codeaurora.org>
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c