Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3721621pxb; Mon, 24 Jan 2022 16:18:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJygsnneKuLUJceF29ZyBzw7jT6fA7+IHBMo6sUjPaJRPe3+TyVmWTK4Prfmk46Wqgh3o9gi X-Received: by 2002:a63:81c6:: with SMTP id t189mr13524228pgd.417.1643069929951; Mon, 24 Jan 2022 16:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069929; cv=none; d=google.com; s=arc-20160816; b=Rr+n03ZunJ1bGbO0zjap9JYnOMZTDb81Fb8YN7N8V8+Oq+3K3fv5DNhe/tpR0f72wm 67r2Jn9ym8jKm6YecBBOzslnlZtj/VpZTyg+cnJ8OaUAH7sZq1IAriCBoJW05pbg7XzC VQIKsHflO+dxWuGNIQhb218gOZ8L0se4HylFKV53aUTvsPB2AFUXG9tZxxc1GFwh7xmB 84VngfJ0WCRb4PjJwsKIOolRzuA9/dlDblS72LUsNcX3fAT7F+iiEbI02CNE158RGITU pfMR2va58PUNGABLoJTX39QpVPd7mPHEP5wW2iovQb9jJeQfOio19hvwB9gQ87TyGVGF FMNQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=esiL803clwTd6szFEosz/SlnV1Gl/7se5WOJ1pxQJLM=; b=F3q/vE/H/DNzrgZFIHosaIa6RoOaEcnEIwBHQgSCP48mwTPmzA1nGwxVTZdyIiREe6 f21WRUGb3zdSUt0VNOz4SQ6BhlF+APu3EfxJZG/hddWVfyoSEWuNIf7Z1gKe7uGE9Xqj pwwfWsvd4q3YBOjjSYTueZktAjJBx8+yw5Q6Rv2tlJEP6kdd5RRZMfzd6PIiSkmfwKOf MyQWOSAxcX7/WV5s/oMWLDqAgPPcmW4p8Lp+7jfruFq990lFzO4b6Ru2ONYjZ74Lh2UO PTDthWH9HjWhbs8XHDr4kGU/1M4HhYeB5ZMVESPl9tUhBM2c/XuW2Eb+Qx8a7jkTcOdv JVIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hdDPTGii; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si14911041pgl.629.2022.01.24.16.18.38; Mon, 24 Jan 2022 16:18:49 -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=@linuxfoundation.org header.s=korg header.b=hdDPTGii; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2372806AbiAYAMd (ORCPT + 99 others); Mon, 24 Jan 2022 19:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384582AbiAXXYB (ORCPT ); Mon, 24 Jan 2022 18:24:01 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A21EC073090; Mon, 24 Jan 2022 13:29:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 62454B8105C; Mon, 24 Jan 2022 21:29:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B7A2C36AE9; Mon, 24 Jan 2022 21:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059763; bh=PT9cOZRjZokQfTIoZoyk+ac+Lh97j0RFBNiuxEnwne8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hdDPTGiiq2swvGhWrDVDwnNYkp28PpotciFMI0U2UW1fiHAdIcC7/8hBoL9uEM2Ce BKUi7G2rCtej7Rz/cnAl8kGixMRL8S7A9mTG2uvG+rvRovK3VsvMeyIaJvsGYFULY+ PK6mniXRmZRsst/h8MrTdvHQfNa2qV45xI8bp/08= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luiz Augusto von Dentz , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.16 0692/1039] Bluetooth: vhci: Set HCI_QUIRK_VALID_LE_STATES Date: Mon, 24 Jan 2022 19:41:21 +0100 Message-Id: <20220124184148.603873277@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luiz Augusto von Dentz [ Upstream commit cfb4c313be670fd4bd09650216620fa4514cdb93 ] This set HCI_QUIRK_VALID_LE_STATES quirk which is required for the likes of experimental LE simultaneous roles. Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- drivers/bluetooth/hci_vhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 5fd91106e853d..95af01bdd02a2 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -239,6 +239,8 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode) if (opcode & 0x80) set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks); + set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); + if (hci_register_dev(hdev) < 0) { BT_ERR("Can't register HCI device"); hci_free_dev(hdev); -- 2.34.1