]> 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)
commit051b9124061e573e0000d78ce231f2b3aa54d5bd
treecb56c359267a9ceab8db9b36396c455c5f17b3e6
parente90dccfb0682d23bd79ed5e873d204096d549707
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: 3fc9aa774a4ca7 ("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