Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1513713ybk; Thu, 14 May 2020 10:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs+PAeAXBTmVhczhUOL6XT6ddWLLk9YH8ZfikshmMoooFdauXHX0Ql5nHMxJlOqakrhqF1 X-Received: by 2002:a17:906:33c9:: with SMTP id w9mr4914341eja.284.1589478442459; Thu, 14 May 2020 10:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589478442; cv=none; d=google.com; s=arc-20160816; b=AjJKCUyZm16PI1QvvyNjv5SEyKtiHUhRhJPXkInN5i7A7XorESIUBZz8GH9bkeTL3q NrHc4vrJZ3N6VyJ8wHcW9UkBRzozL3BhvoNlIzFS4ySbueWhICCwc7/Doq+WGtwzdt3A E4SSb8T+rMgQ1CxzuRjVyWXKYTT8IInyABUfL/bEsx5WA6FQC5/LlZzU9HgWOQiCyepz EYAkbBqN2Dg2bmA4vfFWtN+L1HD9NLyns+HDoQUNy2ortgngUd4au6cAWzXEbNIskjjM NysU9zRY2jPVeiIRs3K6GSmObhUx59R+ASjwVGOks24kO4X/KG3L2rmP5I28S14xxgOg Wllg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EojrK8utBvdbpLbqtZAoeps62LamVF3R2Nk7dYz9csk=; b=kzYVW4YovmB8qrgzg/gwESmCnYoV1WygmlKZWPC35DDbc4RAbNeRzE5yqB6e789yAv SJEYNIWJg6aKk3c52zc+J4zUEWF09OKeHZ9LcQWOUkIgddnCnbBcl6+I0PtP0KtlHxd+ Usez6HS2JESjzYtMJ7+rDDRhJckA+BST5/kXv8Ekk5dZ9Zn9VHQehtor0PhGiBW3zUhF Ck7Wl3b2HBulNwP2GPCRyFLbWz46mKS4C/QvDagyL4DNoRqzvpnK8eVQ/eYSEY91l/WJ rp43+8C67elG8EB652hTH1UQzc1QWQ+7yh6Ab9D7GNBlT0VhWXnndzdq9CpToTf65Sp/ pKgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="bZ/lxPNd"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si2216111ejr.252.2020.05.14.10.46.58; Thu, 14 May 2020 10:47:22 -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; dkim=pass header.i=@chromium.org header.s=google header.b="bZ/lxPNd"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726137AbgENRpM (ORCPT + 99 others); Thu, 14 May 2020 13:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726060AbgENRpL (ORCPT ); Thu, 14 May 2020 13:45:11 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF55C061A0C for ; Thu, 14 May 2020 10:45:11 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id h30so2499463vsr.5 for ; Thu, 14 May 2020 10:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EojrK8utBvdbpLbqtZAoeps62LamVF3R2Nk7dYz9csk=; b=bZ/lxPNdj969sL9KNsybkON1ejiT5z04HIEyEDPFh0FkgrMkAolzWNYg10zLRsKc5c 93nDcCW+torZzraEfPjrp8EkpdGd1fLzYaPCX+qNVIvXSWiHXczqwljUuLeKHM8F66K2 MPrDFxsu+snE1egH3WFyKKnEC7wPMWjgx6Bx4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EojrK8utBvdbpLbqtZAoeps62LamVF3R2Nk7dYz9csk=; b=QyyIGBolmC9uam2C89BcFAlmcJz+xLh8qmCCT1t10vlak+gWiD22RIexGJBN8a8JmT HfwcEeMkTKVNVY3dI6A2XROHZIYDTo2qiXyTWT9FdZyv9j8rChhRJdM54MekUYByTXtJ 0kLbbEO3nL81PUyVo939aPI9BIPMEBL/yA2lktKbv4PcGBF/xeuy/DbhZtB2ZFRY9YAX NjyT01IDxyAtiwx76Tw65+m+lMXf7G7ktSsORnLnonbwlALPiAkcUbnuuUV7s8PMdc6t +ZdUwcyhmwTN2t/SqMOr32mVpI7RMCl2Ub6kdCCOHz7AR/3o3ldAju1LfwSKLhrC20PB 2dyQ== X-Gm-Message-State: AOAM531bM7YEq7vwNFR7Bsg7sYwyfswtuTz11kcuPLgqAB3hmCWGAhXO f6rclbOpMFtEbn2VUlIuM62jGyfd909Y6MQ7r8sKVA== X-Received: by 2002:a67:2c0f:: with SMTP id s15mr964402vss.86.1589478310617; Thu, 14 May 2020 10:45:10 -0700 (PDT) MIME-Version: 1.0 References: <20200513204111.1.I68404fc395a3dbc57c8a89ca02490013e8003a87@changeid> <20200514163048.GO4525@google.com> In-Reply-To: <20200514163048.GO4525@google.com> From: Abhishek Pandit-Subedi Date: Thu, 14 May 2020 10:44:59 -0700 Message-ID: Subject: Re: [PATCH] Bluetooth: hci_qca: Enable WBS support for wcn3991 To: Matthias Kaehlcke Cc: Bluez mailing list , bgodavar@codeaurora.org, Alain Michaud , Marcel Holtmann , ChromeOS Bluetooth Upstreaming , Johan Hedberg , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, May 14, 2020 at 9:30 AM Matthias Kaehlcke wrote: > > Hi Abhishek, > > On Wed, May 13, 2020 at 08:41:25PM -0700, Abhishek Pandit-Subedi wrote: > > WCN3991 supports transparent WBS (host encoded mSBC). Add a flag to the > > device match data to show WBS is supported. > > In general this looks good to me, a few nits inside. > > > This requires the matching firmware for WCN3991 in linux-firmware: > > 1a8b0dc00f77 (qca: Enable transparent WBS for WCN3991) > > > > Signed-off-by: Abhishek Pandit-Subedi > > --- > > > > drivers/bluetooth/hci_qca.c | 23 +++++++++++++++++------ > > 1 file changed, 17 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > > index b3fd07a6f8127..305976c4dcf42 100644 > > --- a/drivers/bluetooth/hci_qca.c > > +++ b/drivers/bluetooth/hci_qca.c > > @@ -75,6 +75,9 @@ enum qca_flags { > > QCA_HW_ERROR_EVENT > > }; > > > > +enum qca_driver_flags { > > + QCA_DRV_WIDEBAND_SPEECH_SUPPORTED = 0x1, > > s/0x1/BIT(0)/ Will change in next version. > > > +}; > > The 'driver'/'DRV' midfix is a bit misleading. WBS support is a device > capability, it's not something the driver supports or doesn't. Maybe > name it 'qca_capabilities' or similar. > > > /* HCI_IBS transmit side sleep protocol states */ > > enum tx_ibs_states { > > @@ -187,10 +190,11 @@ struct qca_vreg { > > unsigned int load_uA; > > }; > > > > -struct qca_vreg_data { > > +struct qca_device_data { > > enum qca_btsoc_type soc_type; > > struct qca_vreg *vregs; > > size_t num_vregs; > > + uint32_t flags; > > capabilities? Capabilities sounds good to me. Thanks for the feedback. Abhishek