Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier
authorMax Chou <max.chou@realtek.com>
Thu, 23 Jul 2020 10:47:42 +0000 (18:47 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 28 Jul 2020 07:12:31 +0000 (09:12 +0200)
The original return is NOTIFY_STOP, but notifier_call_chain would stop
the future call for register_pm_notifier even registered on other Kernel
modules with the same priority which value is zero.

Signed-off-by: Max Chou <max.chou@realtek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c

index 2891e16..5394ab5 100644 (file)
@@ -3515,7 +3515,7 @@ done:
                bt_dev_err(hdev, "Suspend notifier action (%lu) failed: %d",
                           action, ret);
 
-       return NOTIFY_STOP;
+       return NOTIFY_DONE;
 }
 
 /* Alloc HCI device */