Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4559406pxb; Tue, 2 Nov 2021 11:42:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUqUNL4/pqD0VcAW543/9ENYN9ImMQtI1V35s2mDXKtJgMQbMnI1AJmx0CDf3UOXLdHeXm X-Received: by 2002:a05:6602:1342:: with SMTP id i2mr28268794iov.153.1635878550088; Tue, 02 Nov 2021 11:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635878550; cv=none; d=google.com; s=arc-20160816; b=Lj0WuBsZzMVQvSq5vAgImUb+PZNdHtUXLykMp+Q2jFfuRsiaXFN23SYFY/RxS50jE/ 8uZBSCm82Vyl1Vft3/80RahtxU+c0/ARAVDP1ENDsjjcobvGggxMXxWr2DUWz9DiT8di d8wb2Ll+lmWSh+H8xb/afMtZDay+U7tpPHcYKbhLHJm2AH7aPdXoObAB6+IMkOmAZqjb ckgVdxwd/jn72bcDByaxZ1rxC+yMGDjfs2BQg1a6QJuuXgKGov2s0k7zLsFovXF3Ao+l WrliWF6ycIU13uJltwKI5GFTvPCo8thAVHHuNvHvSOTOW/+9bDsRxrQeQN6EG9Bg4b/d 8kbA== 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=matiB3Iryv+9d0uSNpanWYuQOKWOnVkWO1o+e9yzli0=; b=m8yvq4eB5emTMoI/DPbyZeQ5VpIYdWzYaUmGxBP1vVFwcYgq1/5gFU92j8jAwPKzbl rlyBXIx2iMTCbm5W1JNzRICwkHx6KTsvHG07lCkrzZjPQ2DUBCYy625uOp0DQ/n26+N5 5PihF/D/l8HnSXcHMgUu+Ijq6D3Bjz971scZJIAaGBWJFmrAvRhPj/QlyhsgK7Jh/sge obyQ1wemLBdnI1ZzyO6wKfGmh6CcZhls774vM53a08uHOoVdV1HMPUm0wpOceUTbe2tQ 60S2qKWBtBLx8h2EiFKNFvagx9lJsVVnoCvxo0bBwAeBtDaKH2izg2oFtKNADIgxsCni /UAQ== 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 o5si16672323ilg.127.2021.11.02.11.41.56; Tue, 02 Nov 2021 11:42:30 -0700 (PDT) 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 S235129AbhKBSnw (ORCPT + 99 others); Tue, 2 Nov 2021 14:43:52 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:34655 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbhKBSnw (ORCPT ); Tue, 2 Nov 2021 14:43:52 -0400 Received: from smtpclient.apple (p4fefc15c.dip0.t-ipconnect.de [79.239.193.92]) by mail.holtmann.org (Postfix) with ESMTPSA id 30E6BCECF5; Tue, 2 Nov 2021 19:41:15 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: [PATCH v7 2/2] Bluetooth: aosp: Support AOSP Bluetooth Quality Report From: Marcel Holtmann In-Reply-To: <20211102151908.v7.2.Iaa4a0269e51d8e8d8784a6ac8e05899b49a1377d@changeid> Date: Tue, 2 Nov 2021 19:41:14 +0100 Cc: linux-bluetooth , Luiz Augusto von Dentz , =?utf-8?Q?Pali_Roh=C3=A1r?= , CrosBT Upstreaming , josephsih@google.com, Miao-chen Chou , "David S. Miller" , Jakub Kicinski , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <70E30E57-1478-466B-B02E-1E05FC38F625@holtmann.org> References: <20211102151908.v7.1.I139e71adfd3f00b88fe9edb63d013f9cd3e24506@changeid> <20211102151908.v7.2.Iaa4a0269e51d8e8d8784a6ac8e05899b49a1377d@changeid> To: Joseph Hwang X-Mailer: Apple Mail (2.3693.20.0.1.32) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Joseph, > This patch adds the support of the AOSP Bluetooth Quality Report > (BQR) events. > > Multiple vendors have supported the AOSP Bluetooth Quality Report. > When a Bluetooth controller supports the capability, it can enable > the aosp capability through hci_set_aosp_capable. Then hci_core will > set up the hdev->aosp_set_quality_report callback through aosp_do_open > if the controller responds to support the quality report capability. > > Note that Intel also supports a distinct telemetry quality report > specification. Intel sets up the hdev->set_quality_report callback > in the btusb driver module. > > Reviewed-by: Miao-chen Chou > Signed-off-by: Joseph Hwang > > --- > > Changes in v7: > - Remove the unnecessary debug print. > > Changes in v6: > - Use the decimal version instead of hexadecimal version to be > consistent with the AOSP specification. > - Move the code of checking the bluetooth_quality_report_support field > to the previous patch. > > Changes in v5: > - Fix the patch per > [RFC PATCH] Bluetooth: Add framework for AOSP quality report setting > - Declare aosp_set_quality_report. > - Use aosp_do_open() to set hdev->aosp_set_quality_report. > - Add aosp_has_quality_report(). > - In mgmt, use hdev->aosp_set_quality_report and > hdev->set_quality_report separately. > > Changes in v4: > - Move the AOSP BQR support from the driver level to net/bluetooth/aosp. > - Fix the drivers to use hci_set_aosp_capable to enable aosp. > - Add Mediatek to support the capability too. > > Changes in v3: > - Fix the auto build test ERROR > "undefined symbol: btandroid_set_quality_report" that occurred > with some kernel configs. > - Note that the mgmt-tester "Read Exp Feature - Success" failed. > But on my test device, the same test passed. Please kindly let me > know what may be going wrong. These patches do not actually > modify read/set experimental features. > - As to CheckPatch failed. No need to modify the MAINTAINERS file. > Thanks. > > Changes in v2: > - Fix the titles of patches 2/3 and 3/3 and reduce their lengths. > > net/bluetooth/aosp.c | 87 ++++++++++++++++++++++++++++++++++++++++++++ > net/bluetooth/aosp.h | 13 +++++++ > net/bluetooth/mgmt.c | 17 ++++++--- > 3 files changed, 112 insertions(+), 5 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel