Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2529894pja; Thu, 26 Mar 2020 17:14:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs4kBSaP+BmPm03qE7ZrXXFe2CMs/aktLLTxHd/wqGtx8MMmsMByOCBbAOLFtB0lhA/w94A X-Received: by 2002:aca:7506:: with SMTP id q6mr2235632oic.73.1585268059443; Thu, 26 Mar 2020 17:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585268059; cv=none; d=google.com; s=arc-20160816; b=A8dirBjHodJsBgaRG7rn9ZTuxdFCf3Ve/sAXWgAnzDNKv2B1apysU82hcTsP+66CrK YeHw3Jzl8AToGJvcDo8ZP8D/Lyp8U5aIc8HqNxam6zhm4l/2S0FeLV4YRFbNK4TnQc3/ /0+tvrrjR4NSw/E/6brnEL8U56dexog2H2O33sUM3Y+6IOKRWfXu0GnDPFN3wo7Vx2YF 3dnIt7wOmiWQUd91G10UREdwJxBNuziISlygfh3YZTz/lik6/5v6XVJbZ3I83TxZJS/y FRp5oZ4YyS4qhuD9FzNXFnE5yIFCEEnVr54JaOsV7f5c18aUFxR9HMrRH3fpeqiwFGIL OSyg== 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=VWL8ZSPmJAiTPJ9JjQW1j0bE8X/JpNZikw6inrx3YQI=; b=SGpZiQ+ebQS4WL+Sjtf1Z8eQCG+kuYx9IA5iYPd6R3gp/C1KZA1I/3GQ4ENE/U3mxb 1dqP055rhXHZbwTz4fH7hrdwyKXKgAmT3bwfn51k4FpIkjC3NsV2TgcOrqQsQMH+MdaL bYO+vbWqRQ41ciTQam/Dqfg7tKJ4k5jgGaqdr0NjVHtW/6B3Qm6QDnSRodYop1bYZ+1Y DPKNBIW9Phde3E8GilbtLmt6HXfLhhk5LrxGSdMRcOWK2yzXKjhEEhXM0agiRSybwaVP GbFipzATxvafnpAoEI2MhA9D1BYWmUOIEYXIVnbx0BZKJ6XYoQd5F1vLUHx19yE+5bUO r+sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NF52MK0P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j4si1599209ooj.58.2020.03.26.17.14.07; Thu, 26 Mar 2020 17:14:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NF52MK0P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727685AbgC0ANt (ORCPT + 99 others); Thu, 26 Mar 2020 20:13:49 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35924 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgC0ANt (ORCPT ); Thu, 26 Mar 2020 20:13:49 -0400 Received: by mail-lj1-f196.google.com with SMTP id g12so8445424ljj.3 for ; Thu, 26 Mar 2020 17:13:48 -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=VWL8ZSPmJAiTPJ9JjQW1j0bE8X/JpNZikw6inrx3YQI=; b=NF52MK0PSlUZLDII9gyz0ifyNpp+j4BfKlYt4/XYvcsq/F4CYzlG/eu4r9j94+PpNJ hs97iUKCE+zNoq9ZfdDg26kpdiiEk3q5ik+SmcihoAeyK88CnY534dCGxNjVD5tyECex HKTILpbONOMGNIOIYyRDBDM7Fd7DDehT6OnDk= 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=VWL8ZSPmJAiTPJ9JjQW1j0bE8X/JpNZikw6inrx3YQI=; b=V9Aad+FFmAmDYV1CW3oVmpjWLDgMBDSRt/DVC7ibhrvnAYeHYjahmqBJElgWQmR3ce aEydnMLE94SVkZbYGFvkTWPuTV1NtIltJvP/kLq1p/yUSeXUwh/CWQptBjk2Dh0ysQRT +WJT1aetFDvMC3chTlcAoivpQ/d20TDE1G5CKm0N9aWPy/e1RU9MWjcjg0cT8eVESVAX D29TahoY9HixeaGX/VLlw2L85p6K32sLlIeK4/JkPgQ6ta4HVBtDbYWPUIxMahvUmfgJ ssINuOIGUFQDy9D3n6BpQsH1aKbrpQbuXAZQBXqqGFQ78ns4P0VMECXiNpeNxLJRdouQ NrhA== X-Gm-Message-State: ANhLgQ1BrumiuYrTWSWR1/0JoKuA519Y0KceFAJ1gTiC92KiknkpwXhM I5D7TZQLVAkiaaFCxn3R3ee9hHxXMIadSnPqF6KNtw== X-Received: by 2002:a2e:83cf:: with SMTP id s15mr6529050ljh.36.1585268027186; Thu, 26 Mar 2020 17:13:47 -0700 (PDT) MIME-Version: 1.0 References: <20200326075938.65053-1-mcchou@chromium.org> <20200326005931.v3.1.I0e975833a6789e8acc74be7756cd54afde6ba98c@changeid> In-Reply-To: From: Miao-chen Chou Date: Thu, 26 Mar 2020 17:13:36 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] Bluetooth: btusb: Indicate Microsoft vendor extension for Intel 9460/9560 and 9160/9260 To: Marcel Holtmann Cc: Bluetooth Kernel Mailing List , Alain Michaud , Luiz Augusto von Dentz , "David S. Miller" , Jakub Kicinski , Johan Hedberg , LKML , netdev 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 On Thu, Mar 26, 2020 at 2:01 AM Marcel Holtmann wrote: > > Hi Miao-chen, > > > This adds a bit mask of driver_info for Microsoft vendor extension and > > indicates the support for Intel 9460/9560 and 9160/9260. See > > https://docs.microsoft.com/en-us/windows-hardware/drivers/bluetooth/ > > microsoft-defined-bluetooth-hci-commands-and-events for more information > > about the extension. This was verified with Intel ThunderPeak BT controller > > where msft_vnd_ext_opcode is 0xFC1E. > > > > Signed-off-by: Miao-chen Chou > > --- > > > > Changes in v3: > > - Create net/bluetooth/msft.c with struct msft_vnd_ext defined internally > > and change the hdev->msft_ext field to void*. > > - Define and expose msft_vnd_ext_set_opcode() for btusb use. > > - Init hdev->msft_ext in hci_alloc_dev() and deinit it in hci_free_dev(). > > so I spent some cycles on thinking about on how we can have this nice and cleanly without putting too much into the core stack or hci_dev. I took your patches and converted them a little bit into how I would do it. Please have a look. Thanks for brainstorming the framework. I will address your suggestion in v4 shortly. Regards, Miao