From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2020EC433DB for ; Mon, 21 Dec 2020 09:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D228422BF3 for ; Mon, 21 Dec 2020 09:49:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728393AbgLUJtC (ORCPT ); Mon, 21 Dec 2020 04:49:02 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:34615 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728195AbgLUJtA (ORCPT ); Mon, 21 Dec 2020 04:49:00 -0500 Received: from marcel-macbook.holtmann.net (p4ff9fab6.dip0.t-ipconnect.de [79.249.250.182]) by mail.holtmann.org (Postfix) with ESMTPSA id 8744ACED06; Mon, 21 Dec 2020 10:19:26 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: [PATCH v3 4/5] Bluetooth: advmon offload MSFT handle controller reset From: Marcel Holtmann In-Reply-To: <20201216123317.v3.4.I215b0904cb68d68ac780a0c75c06f7d12e6147b7@changeid> Date: Mon, 21 Dec 2020 10:12:08 +0100 Cc: linux-bluetooth , CrosBT Upstreaming , Archie Pusaka , Miao-chen Chou , Yun-Hao Chung , "David S. Miller" , Jakub Kicinski , Johan Hedberg , Luiz Augusto von Dentz , LKML , netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <73E2D097-F8D4-4BFA-8EC1-C04B079F1BFC@holtmann.org> References: <20201216043335.2185278-1-apusaka@google.com> <20201216123317.v3.4.I215b0904cb68d68ac780a0c75c06f7d12e6147b7@changeid> To: Archie Pusaka X-Mailer: Apple Mail (2.3654.40.0.2.32) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Archie, > When the controller is powered off, the registered advertising monitor > is removed from the controller. This patch handles the re-registration > of those monitors when the power is on. > > Signed-off-by: Archie Pusaka > Reviewed-by: Miao-chen Chou > Reviewed-by: Yun-Hao Chung > > --- > > (no changes since v1) > > net/bluetooth/msft.c | 79 +++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 74 insertions(+), 5 deletions(-) > > diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c > index f5aa0e3b1b9b..7e33a85c3f1c 100644 > --- a/net/bluetooth/msft.c > +++ b/net/bluetooth/msft.c > @@ -82,8 +82,15 @@ struct msft_data { > struct list_head handle_map; > __u16 pending_add_handle; > __u16 pending_remove_handle; > + > + struct { > + u8 reregistering:1; > + } flags; > }; hmmm. Do you have bigger plans with this struct? I would just skip it. Regards Marcel