OSDN Git Service

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)
commita9ec8423134a54c9f0ae8d4ef59e1e833ca917c2
treecb56c359267a9ceab8db9b36396c455c5f17b3e6
parent4da385f742d485fe3135a2711299cbf28ea24bc9
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: dd522a7429b07e ("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