Bluetooth: Restore running state if suspend fails
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Fri, 20 Mar 2020 00:07:12 +0000 (17:07 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 23 Mar 2020 17:48:50 +0000 (18:48 +0100)
commit8731840a345fb7ebfd0174ecc29aa21623bc2899
tree324e5adc5bb6c7dcb79725848ac614187c8372a0
parent0d7043f355d0045bd38b025630a7defefa3ec07f
Bluetooth: Restore running state if suspend fails

If Bluetooth fails to enter the suspended state correctly, restore the
state to running (re-enabling scans). PM_POST_SUSPEND is only sent to
notifiers that successfully return from PM_PREPARE_SUSPEND notification
so we should recover gracefully if it fails.

Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c