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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:45 +0000 (08:23 +0200)
commitd790826bcf163cbdba45070b87e92d2c84b450e7
treeb235d9d1904580763193dfbe82d3d40e410037fa
parentce21cd6ba7623d88b21261aceedfd8aafdc375f5
Bluetooth: Allow suspend even when preparation has failed

[ Upstream commit a9ec8423134a54c9f0ae8d4ef59e1e833ca917c2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_core.c