Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1018208pxu; Wed, 16 Dec 2020 23:21:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHo/dlO5PKlnXF+aUGB9xmG8Zn4LnxSuqONUtkkk/fUv48Q7xJPmPvmO/8tzZ4n6/uO40L X-Received: by 2002:a17:906:7f0b:: with SMTP id d11mr13620550ejr.7.1608189662845; Wed, 16 Dec 2020 23:21:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608189662; cv=none; d=google.com; s=arc-20160816; b=QlGk8ut54IgUTtl2OGhLHG+uTY6Js2oZKtiJkQyGHiHxxas6LjFZOYylsniybBEYQk YeBgZEf2a0343LHwqV8MqCkw2GOghhwA4cQZ6XsBrAtgCsfkXiloFLmm5dRKRfrv82c8 IhNO5H6RHEQpbfbINDVcXWO9iUsJqShRtp2ZhLLtluSsrr+hXDJUsLvCt2JbTw4GKvKt o94jpPfrtPM8zDqY/i4NDD/9gL/+XswIGRpmyhn9/R4Mvxp5UlcrL+ySWS4mW05gl03I /mogsRILAKCAwKq0UGCJiO3a+oCb9bLGycHbQYAwSz+5XuL+JGA2GNXVFZpHbCK7FVtU NbRw== 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=iaV7Mr1OnvijXCzI76kMkwYxN05oQ0nopWy4o/r2Ewg=; b=ap5aA3sGWQzZ2QrnlGQUK0DrcK02gkJdzYJfxaoBwRlCP8X2bWDZTya2pq+vAijE3C vBgCs4g3F3HZfsFevq5W/RNxYxrtjCWXf8b6puQCMsmpXQ90fZndWG3Mp0lbiKlE5+yG lTCmOE8R15hv0F7BOubCa6MhFmI42ibjQNSoTAo5bj53jmOwoISx3s29Yz3btAgEqbl8 Z1LG9cq7o4QlLanktuy/jxlVz2mMgPBUGpdMyPhODbk4fATVvddKplmlJE/1mfdVFMeV 7LoOePRJet08jN4sF4/K/Fm3XcROKjLD/c910jYEGhxRyTufLAY84IKDDg4HSq63UJPf jdRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=le1KgvD0; 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 n25si3671915edy.231.2020.12.16.23.20.39; Wed, 16 Dec 2020 23:21:02 -0800 (PST) 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=le1KgvD0; 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 S1727189AbgLQHSp (ORCPT + 99 others); Thu, 17 Dec 2020 02:18:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727146AbgLQHSp (ORCPT ); Thu, 17 Dec 2020 02:18:45 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7EBBC06138C for ; Wed, 16 Dec 2020 23:18:04 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id z21so2555022pgj.4 for ; Wed, 16 Dec 2020 23:18:04 -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=iaV7Mr1OnvijXCzI76kMkwYxN05oQ0nopWy4o/r2Ewg=; b=le1KgvD0Ngu7bipqD+Nq6mjJXgFX9N1HMtk+AAozLaa1qV4o1yvGfoZ9T1bnYYNXu3 hVVoHQ8OcEIvcnLioi3njCOaEON+aj3dbrgaG2io1kqV8o1NhlQmsMHQIixeoDCFA5oY sjHdNROmoMsFQyiumvITiadI83cXXnYhyTlj0= 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=iaV7Mr1OnvijXCzI76kMkwYxN05oQ0nopWy4o/r2Ewg=; b=rYOMC0fkFCtgaz1kW5fUBrqnDwgBrIvKIyHIPQFa9DU5AaqhXmZzUDWKwHtbk1w89m 29BUd8HIT7yT4ucOOjNlfk+ZpRWyQdowyV9nRKTEm4SOJz3E4ak4bhjUCL31pAzYbBgh lQOFsbr2BGmwwoVY14G05gUbmaW0catwM0iQtwb+8Sl5VKC36CmsGGaW/mDD9ocRlpye mKIKsa64MCQdaTzHiTr2GacR5Q+d00megTsatzrZYPH4S/KzhDlrjAoLGYwC6fl9LXuD Okk8COwKr7LwrJmE5YzDUurJVWdqsj5swsuafX5eiNSnPd0pzDcUMBRi7LeIfxwm/KeB m35w== X-Gm-Message-State: AOAM532TT9MsSAJhiyZD6jYJeSWj8RhJQxTiF3seWtAUUO3cHE4Y8Hud X/uM75dAhpDHvs2DpMKHgjjLOA== X-Received: by 2002:a63:65c5:: with SMTP id z188mr21187289pgb.332.1608189484289; Wed, 16 Dec 2020 23:18:04 -0800 (PST) Received: from localhost ([2620:15c:202:201:de4a:3eff:fe75:1314]) by smtp.gmail.com with ESMTPSA id n7sm4602508pfn.141.2020.12.16.23.18.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Dec 2020 23:18:03 -0800 (PST) From: Miao-chen Chou To: Bluetooth Kernel Mailing List Cc: Alain Michaud , Archie Pusaka , Marcel Holtmann , Luiz Augusto von Dentz , Miao-chen Chou , Abhishek Pandit-Subedi , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org Subject: [PATCH v1 2/4] Bluetooth: btqca: Enable MSFT extension for Qualcomm WCN399x Date: Wed, 16 Dec 2020 23:17:29 -0800 Message-Id: <20201216231652.v1.2.I188d99e738b39d9ef36110addbc227837d3c42a7@changeid> X-Mailer: git-send-email 2.29.2.684.gfbc64c5ab5-goog In-Reply-To: <20201216231652.v1.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> References: <20201216231652.v1.1.Id9bc5434114de07512661f002cdc0ada8b3d6d02@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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