Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1227639ybh; Thu, 23 Jul 2020 03:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYt/+AVr1icwSWJWM0pThZx0TH2GUp08q7ew+fn2GKM1Bdvz9QmE/A0DLJ8M3bdCzqN+x4 X-Received: by 2002:a50:ed15:: with SMTP id j21mr3702751eds.246.1595501338194; Thu, 23 Jul 2020 03:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595501338; cv=none; d=google.com; s=arc-20160816; b=TZu9IDjb74mJIIIGjOZWikxo/bbfFyJ1XsWiIIyH54i6MHVlrQiNvjhY3wjT4nJBZP KLtxv7tPXaMsN+d7RmqWNOSPI41XLvdg44g1PQ9NhAIEGLpr7SIjWJbAqNe6Jd+6YtL8 oR7+fKjZMdbGjXD+nx8HXTLrCcNLLN6Ta3O/E+vPwohNpRyhYycN0qx/W9RkUDysoksH TYqzQVv4BHYcrVNCQqZC1p6sYj5ENw12A4iGVvW9jDGyJQTGGbCHFlzy9Gyoldo7lD/B kGfP/W/rbQaVKLFfsfH9/OxbS3dgLcZdIjOUQQ8587f4WAUa7igQf+KdSEXqg4yv+7eX pjqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:authenticated-by; bh=eIwj6G0TZO1YB9HQWhK1WjrobQD0OQMyrfqW/Z4LFcs=; b=S+ZycS3WxHPcSC4iXdZ8co2n1XlJDL/Szj8d6bI/KprmibE1J8st+x5888FAbhXwpo PJJWLfAJwtjSmCb8+5KVBFU8Zp8U2BUBjq4/gpqpW7yEcMTZkFaCA+vp26naT0ziK2e/ Vm+FaLYg2n/aCferea64rwY4BVOWZ8rVqbH4CzFYpzzbmiAf/5MqJAvHIchk8cF8+lLU xnTh2XO1sTzwgIiX0j80BzEMgbr0TW+I3n8HUo+NymbkRbN+xESsZCeR3jFGmfOGubE6 qpj+rmEW3rnmKZwWyFJNfuC5MPlyuwk7destosPyCWrSX5M+j7dd/TWoXPPLk4XktOOU v8HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si1613920ejc.665.2020.07.23.03.48.34; Thu, 23 Jul 2020 03:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728435AbgGWKsM (ORCPT + 99 others); Thu, 23 Jul 2020 06:48:12 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:58667 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgGWKsL (ORCPT ); Thu, 23 Jul 2020 06:48:11 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 06NAlmzJ7027604, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 06NAlmzJ7027604 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 23 Jul 2020 18:47:48 +0800 Received: from RTEXMB03.realtek.com.tw (172.21.6.96) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 23 Jul 2020 18:47:47 +0800 Received: from localhost.localdomain (172.21.83.110) by RTEXMB03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 23 Jul 2020 18:47:47 +0800 From: To: , , , CC: , , , , , Subject: [PATCH] Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier Date: Thu, 23 Jul 2020 18:47:42 +0800 Message-ID: <20200723104742.19780-1-max.chou@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.83.110] X-ClientProxiedBy: RTEXMB03.realtek.com.tw (172.21.6.96) To RTEXMB03.realtek.com.tw (172.21.6.96) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Max Chou 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 --- 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 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 */ -- 2.17.1