]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Allow suspend even when preparation has failed
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Fri, 5 Jun 2020 20:50:15 +0000 (13:50 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Jun 2020 08:16:23 +0000 (10:16 +0200)
commitf34b8314560506b62bedc1162416a90689544ae2
treecb56c359267a9ceab8db9b36396c455c5f17b3e6
parent8efaf94f91dc8adca11cb32d01c88dc3598c5258
Bluetooth: Allow suspend even when preparation has failed

It is preferable to allow suspend even when Bluetooth has problems
preparing for sleep. When Bluetooth fails to finish preparing for
suspend, log the error and allow the suspend notifier to continue
instead.

To also make it clearer why suspend failed, change bt_dev_dbg to
bt_dev_err when handling the suspend timeout.

Fixes: 0f0e60379e2f7d ("Bluetooth: Handle LE devices during suspend")
Reported-by: Len Brown <len.brown@intel.com>
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c