Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1504179pxb; Fri, 26 Feb 2021 12:29:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy23+BX/eP9SDgOYxyNVALfrqP/jQmKKbN5w9/sqsczPYGLVVlcUMVJb47cF3SmvS5c0ITC X-Received: by 2002:aa7:c6d5:: with SMTP id b21mr5304309eds.180.1614371348161; Fri, 26 Feb 2021 12:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614371348; cv=none; d=google.com; s=arc-20160816; b=cBQAbdtDFZwoPcU5wJaMtMWl7h7Zi1khSKcnbZkYB+zFTmbE2PjGwZUdpTlclZU2ka A/LmwcWeANeGcWqZ3peoH7OBOyjNav33RGap8O0uGRV4HJb6C9z24peJAIuDEELa1apw In/dpIAAOaNia4+mPUW7T7NeUWtmDgEJU3lLe7etPrOzNYa7Wj7ykpjV1UhmtuQqxSdp Op51awgFOAd3uvP13R3s9oKXd7BDl7B9sxgRPM4+ZGVP4MTAG8nyS9n7stzCp8XH519O y8aIWbCx8q+ZMSC3MthtW/+ZdVWvNKPSAD6PcWpZRvVJ7Jvth/+Q2pCCs9/g1UZIg8d2 m33Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=t3aNBNUDBywyTSLafSpNJBBJ0rrPv63nJuZ1/COJ88Q=; b=POO2Tf9/R57YSIDVB7TotNVm6jhZ6PrvzRkikQy6HYg/0ibneHxgYio2ADlh8Ty2HW ACKMBHbP03Me8aQN7XmqekLTiJ8B191s4itTf3gb5Acf9tXq8KXFKDq/zYMSD9BqSzqZ lC3cU1FkRqfOJ/82DvdMLvXk4+tMGetwwjNMkfehIZRkt0JVvoNeUeLw7Jf2rnxj8l9W IXppk86ShpSBp4RKJyh5pgdh0UxqfH7Vgf3+ziaFMAp3/lMQCsdeVHzxKGKUFoWu3eL8 sy3m+dExW9IVAEzmA3Gp85d0WnTILirL1UYpcNIBcZYMQnVvRiQ8omCmdoKejTN35X3K vqsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 mp13si5941096ejc.24.2021.02.26.12.28.44; Fri, 26 Feb 2021 12:29:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbhBZU03 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Feb 2021 15:26:29 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:37097 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbhBZUYw (ORCPT ); Fri, 26 Feb 2021 15:24:52 -0500 Received: from marcel-macbook.holtmann.net (p4ff9fb90.dip0.t-ipconnect.de [79.249.251.144]) by mail.holtmann.org (Postfix) with ESMTPSA id 152C7CEC82; Fri, 26 Feb 2021 21:31:15 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v4] Bluetooth: Keep MSFT ext info throughout a hci_dev's life cycle From: Marcel Holtmann In-Reply-To: <20210127091600.v4.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> Date: Fri, 26 Feb 2021 21:23:41 +0100 Cc: Bluetooth Kernel Mailing List , Alain Michaud , Archie Pusaka , Luiz Augusto von Dentz , Abhishek Pandit-Subedi , "David S. Miller" , Johan Hedberg , LKML , netdev@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <3439488F-ED5C-467A-BB67-B21A2CEAD268@holtmann.org> References: <20210127091600.v4.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> To: Miao-chen Chou X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Miao-chen, > This moves msft_do_close() from hci_dev_do_close() to > hci_unregister_dev() to avoid clearing MSFT extension info. This also > re-reads MSFT info upon every msft_do_open() even if MSFT extension has > been initialized. > > The following test steps were performed. > (1) boot the test device and verify the MSFT support debug log in syslog > (2) restart bluetoothd and verify msft_do_close() doesn't get invoked > and msft_do_open re-reads the MSFT support. > > Signed-off-by: Miao-chen Chou > Reviewed-by: Abhishek Pandit-Subedi > Reviewed-by: Archie Pusaka > Reviewed-by: Alain Michaud > --- > > Changes in v4: > - Re-read the MSFT data instead of skipping if it's initiated already > > Changes in v3: > - Remove the accepted commits from the series > > net/bluetooth/hci_core.c | 4 ++-- > net/bluetooth/msft.c | 21 ++++++++++++++++++--- > 2 files changed, 20 insertions(+), 5 deletions(-) can you please re-base this against bluetooth-next tree since it no longer applies cleanly. Thanks. Regards Marcel