From 24b065727ceba53cc5bec0e725672417154df24f Mon Sep 17 00:00:00 2001
From: Max Chou <max.chou@realtek.com>
Date: Thu, 23 Jul 2020 18:47:42 +0800
Subject: [PATCH] Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier
Git-commit: 24b065727ceba53cc5bec0e725672417154df24f
Patch-mainline: v5.9-rc1
References: jsc#SLE-13430
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>
Acked-by: Takashi Iwai <tiwai@suse.de>
---
net/bluetooth/hci_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 2891e16c1cc1..5394ab56c915 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3515,7 +3515,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 */
--
2.16.4