Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1221493pxb; Fri, 10 Sep 2021 00:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygZtSLtff9I4S9annd7Oxs8v084wOhSWOpgLrdLqpSqJLhTXN3XgG9gFivyYtScnK2lHPx X-Received: by 2002:aa7:d610:: with SMTP id c16mr6253843edr.286.1631259037000; Fri, 10 Sep 2021 00:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631259036; cv=none; d=google.com; s=arc-20160816; b=xL4+KYYUSztKWaf0QstdZmPh9W35/TRVy65odgzLZmWeAJEB1FSfe2ym6WAFWjgi71 P8cwx5zCN7yilte+mNfYKcxGZXsHVKy4/lGZDtjTQAtwew33T2687wEq4zusTm7vh2EQ dbU/GKfVl1Yb8sDFiRQCqYgqJBj27XzC6WnYy674z9DlHqDXOaxqPHIh+Aea6HVbftE4 QnYsD9zAihJqCKo2UHbgunbNdtSzR4CbSfMktrHKdZALCfkIxf9KtChehKq5pCX6qFWR T1hniZ9qJ1ESCNcdrRhV5Lg/aGrU602VsqkS+yo0D+1StdOpCcKlNaRhst1FT0AcWl0u bitQ== 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=2ARMPcbZO2rZyy94NXdR4cL/ZWJrykGw8uNEO4jhaDQ=; b=zweJ+W9vKlFE+PVFB7qKYqJjnLnBHoAomfuyJ5sPmAz4RFECth3UMgDrUI+96oEON9 Emx91pJwocXw0jx2eaCd/A56QxrJmwf56NANB64O7RYGQLbYQYLJqemKhBpexCZ5XYdZ HDjHiFDza/+58uN2TFyCKG4BzVonVsXrtBHdSlwEsbMIQlHC+2Kh8I/pE31bMXCu+7Xs /+iQd8V7ciuKErivl5QAO+RFdRXHpy2g0DydmjhKYbWK+AhvVwjj782JOzHwhXZPsYUS ScrksbU/ismj8cWojxMVXeuuvpMOLVsQUFBuSBx0zkZCeQGiwhVb0D+z4JiGMdyb54Ik pgVg== 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 s9si4064205ejc.456.2021.09.10.00.30.11; Fri, 10 Sep 2021 00:30:36 -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 S231444AbhIJH3D (ORCPT + 99 others); Fri, 10 Sep 2021 03:29:03 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:43314 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbhIJH3D (ORCPT ); Fri, 10 Sep 2021 03:29:03 -0400 Received: from smtpclient.apple (p5b3d2185.dip0.t-ipconnect.de [91.61.33.133]) by mail.holtmann.org (Postfix) with ESMTPSA id 31D1BCED3D; Fri, 10 Sep 2021 09:27:51 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH v6] Bluetooth: Keep MSFT ext info throughout a hci_dev's life cycle From: Marcel Holtmann In-Reply-To: <20210909140945.v6.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> Date: Fri, 10 Sep 2021 09:27:50 +0200 Cc: Luiz Augusto von Dentz , linux-bluetooth , CrosBT Upstreaming , Alain Michaud , Abhishek Pandit-Subedi , Archie Pusaka , Miao-chen Chou , "David S. Miller" , Jakub Kicinski , Johan Hedberg , open list , netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <1E0E222B-4948-4584-B18D-C7010CC48841@holtmann.org> References: <20210909140945.v6.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> To: Manish Mandlik X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Manish, > This splits the msft_do_{open/close} to msft_do_{open/close} and > msft_{register/unregister}. With this change it is possible to retain > the MSFT extension info irrespective of controller power on/off state. > This helps bluetoothd to report correct 'supported features' of the > controller to the D-Bus clients event if the controller is off. It also > re-reads the MSFT info upon every msft_do_open(). > > The following test steps were performed. > 1. Boot the test device and verify the MSFT support debug log in syslog. > 2. Power off the controller and read the 'supported features', power on > and read again. > 3. Restart the bluetoothd and verify the 'supported features' value. > > Signed-off-by: Miao-chen Chou > Reviewed-by: Abhishek Pandit-Subedi > Reviewed-by: Archie Pusaka > Reviewed-by: Alain Michaud > Signed-off-by: Manish Mandlik > --- > > Changes in v6: > - Split msft_do_{open/close} into msft_do_{open/close} and > msft_{register/unregister} > > Changes in v5: > - Rebase on ToT and remove extra blank line > > 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 | 3 +++ > net/bluetooth/msft.c | 55 +++++++++++++++++++++++++++++++++------- > net/bluetooth/msft.h | 4 +++ > 3 files changed, 53 insertions(+), 9 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel