Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1635180pxu; Thu, 17 Dec 2020 15:03:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4XW5sXzPFE/H8kvbrzhbRg6eJnSub6JHqmLpHDFU4m0i1idDPx5wYknFDJ4LYOwnukppo X-Received: by 2002:a17:906:578e:: with SMTP id k14mr1347806ejq.90.1608246181534; Thu, 17 Dec 2020 15:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608246181; cv=none; d=google.com; s=arc-20160816; b=lDyWM/xLn30yi7JroLOejVVjCND71/wjyRhbVI4QgzWux97BjIRzJLAS8pFLhnC/ah 62xMtumY7SnxIKXZ863LoyA1Do4a6yD74NorGPPvulS5bAofjBMgoFtrzVvUumM+LlAG e6OvzrM7gkV4AC3s7+xFwhw9K97HfJqfOmkEM1lXWTspJMUdpUrVd677sIYieIvvIg2C KeSoA1IxXGiKBg5be8J0oBYgXsgin6D7rW6rqUi8NhB5+FHbLi8Dz3tsn5RqjiMJrvqE AFcHApWXqzg4VnAtIVH11vjWHhAwGKA1Y53N4adW/6MVgraqHQRjC2pYQYv3pia06Tbq tK9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cI9MgmLeploorlaT6riPPJE9eXLVQcklnfEH1q+Fd9s=; b=V5RADHHfXWmLrL+dQ0SnivnhgcXP3LY3Q0kJ1xu1VHv8f0v3LEJGyWROGAamgGEocX 7DDDX4d26pkqIYVgCLPpF1n+m8HoyqFy2aFHodbsETiRppitL1yulq2HV5hcgFOccu31 KA6045aSNIQOepDhkZi6T6uLVzWarVsj1qSuIxuDMq3BTVwYX15iYCnyFCBL+6DR/kPX 1pFC6ojqHI87XkeOpHwZKdnczcqtn0tOWUfH8joI6q+bX2GNq7Yva0456NRimNlgtIod GnAWQ2CP5Hi1E/JHFHUWZpUh+e6/um4VsBAs0vJUSCneCoJdydl1+n/C6id/ZW1ZhuAA hNeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eeSPw9ZN; 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; 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 t26si3365794ejx.4.2020.12.17.15.02.21; Thu, 17 Dec 2020 15:03:01 -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; dkim=pass header.i=@chromium.org header.s=google header.b=eeSPw9ZN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732146AbgLQWyr (ORCPT + 99 others); Thu, 17 Dec 2020 17:54:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732168AbgLQWyp (ORCPT ); Thu, 17 Dec 2020 17:54:45 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A9AEC061282 for ; Thu, 17 Dec 2020 14:54:05 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id f14so231537pju.4 for ; Thu, 17 Dec 2020 14:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cI9MgmLeploorlaT6riPPJE9eXLVQcklnfEH1q+Fd9s=; b=eeSPw9ZNCa3gp4C94BkDSwC79ilLWC9VXQd3Ibuzia9j0DGwW584pKr22PoidTVF9z IRAQD1+yho+07aj/S+ueSUy2Srx3RJWkNfp315Kpj29Z1XiiWmPhh94vbkja4z+NKtX6 EJPgoUESQOiuv9BByERPEEj76aLTvRuUnA1OA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cI9MgmLeploorlaT6riPPJE9eXLVQcklnfEH1q+Fd9s=; b=H1Dg6WuPQ33bds/8EqWxvKCf+QyeczEnEUlOpk/9rJWzH7RrJHfk/mq7+A4Ycho+eL 4CqhB6nkC2el2rJy/Ox6fumAh1QcOsTu9XiZ0a0TBd/hOqCOCVFa9+Z24H9ua04f9YAx 9Q1oJ/SxOfabmARlTPZbZNzRhudf/2BVoF7NnjDAjztwzBrbM4+ytYmRajLcMAn1MLKO 7HTTvdd0XOJMonGh082r10agyOctcLI+K5yjzFtiVKsLJVSun2ItDlyq3+CJ3+b+myaY hEbW0FFcfHE6cQ6wgxdAC62UCTqQiinMLF5humNdgj50yvhbYD8BYAvzkuGhFilLhAPF rPLg== X-Gm-Message-State: AOAM532fcq52JAR4GmkdUpbNfe/70Ei2sad4rxbgaq/mU2sSZeZbzTB8 HUCfPxZdE85GhovftXW2J7I4JdfZV2O3Rg== X-Received: by 2002:a17:90a:6a48:: with SMTP id d8mr1363057pjm.130.1608245644550; Thu, 17 Dec 2020 14:54:04 -0800 (PST) Received: from localhost ([2620:15c:202:201:de4a:3eff:fe75:1314]) by smtp.gmail.com with ESMTPSA id w200sm6776305pfc.14.2020.12.17.14.54.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Dec 2020 14:54:03 -0800 (PST) From: Miao-chen Chou To: Bluetooth Kernel Mailing List Cc: Alain Michaud , Luiz Augusto von Dentz , Archie Pusaka , Marcel Holtmann , Miao-chen Chou , Abhishek Pandit-Subedi , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] Bluetooth: btqca: Enable MSFT extension for Qualcomm WCN399x Date: Thu, 17 Dec 2020 14:53:17 -0800 Message-Id: <20201217145149.v2.2.I188d99e738b39d9ef36110addbc227837d3c42a7@changeid> X-Mailer: git-send-email 2.29.2.684.gfbc64c5ab5-goog In-Reply-To: <20201217145149.v2.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> References: <20201217145149.v2.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The following Qualcomm WCN399x Bluetooth controllers support the Microsoft vendor extension and they are using 0xFD70 for VsMsftOpCode. -WCN3990 -WCN3991 -WCN3998 < HCI Command: ogf 0x3f, ocf 0x0170, plen 1 00 > HCI Event: 0x0e plen 18 01 70 FD 00 00 1F 00 00 00 00 00 00 00 04 4D 53 46 54 The following test step was performed. - Boot the device with WCN3991 and verify INFO print in dmesg. Signed-off-by: Miao-chen Chou Reviewed-by: Abhishek Pandit-Subedi Reviewed-by: Archie Pusaka --- (no changes since v1) drivers/bluetooth/btqca.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c index f85a55add9be5..ab19963c83616 100644 --- a/drivers/bluetooth/btqca.c +++ b/drivers/bluetooth/btqca.c @@ -517,6 +517,19 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, return err; } + /* WCN399x supports the Microsoft vendor extension with 0xFD70 as the + * VsMsftOpCode. + */ + switch (soc_type) { + case QCA_WCN3990: + case QCA_WCN3991: + case QCA_WCN3998: + hci_set_msft_opcode(hdev, 0xFD70); + break; + default: + break; + } + /* Perform HCI reset */ err = qca_send_reset(hdev); if (err < 0) { -- 2.29.2.684.gfbc64c5ab5-goog