diff mbox series

Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier

Message ID 20200723104742.19780-1-max.chou@realtek.com
State Awaiting Upstream
Delegated to: David Miller
Headers show
Series Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier | expand

Commit Message

max.chou@realtek.com July 23, 2020, 10:47 a.m. UTC
From: Max Chou <max.chou@realtek.com>

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>
---
 net/bluetooth/hci_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marcel Holtmann July 28, 2020, 7:13 a.m. UTC | #1
Hi Max,

> 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>
> ---
> net/bluetooth/hci_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel
diff mbox series

Patch

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 6509f785dd14..3ce06347216a 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3513,7 +3513,7 @@  static int hci_suspend_notifier(struct notifier_block *nb, unsigned long action,
 		bt_dev_err(hdev, "Suspend notifier action (%lu) failed: %d",
 			   action, ret);
 
-	return NOTIFY_STOP;
+	return NOTIFY_DONE;
 }
 
 /* Alloc HCI device */