Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3389763pxb; Mon, 17 Jan 2022 19:23:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh/PWmxdLdCnMAw2OEq/+/1RAoru2hb41IyuLzsGA9SSLgoiUdsnelT4aP6Y3z5iqCariv X-Received: by 2002:a17:903:285:b0:14a:93d5:3a7c with SMTP id j5-20020a170903028500b0014a93d53a7cmr16928337plr.42.1642476231784; Mon, 17 Jan 2022 19:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642476231; cv=none; d=google.com; s=arc-20160816; b=m9HFpm0oyIIjJ9KTFBW5gPcDl+B0+e6RHZZjMtjR50b2MHvQlBXvdG2J+/TABJ9ZBl GLwkEUrx+GnleSbVCbFP4wVQNL08Fi4oPd0SWKbAnWAvFFjA6BDi62dvRPxdd8Y4lAgi E1r6Lc8OqEOkvQPWS90MYfZAnoMh+QAsJ/7lRZQ0gsqeIQzeF1FxOy4822InT9eHlaEj 1tveUOSneCIfgvmDgy6G4hcqE6Eb5CdmTG5APzP7efN6qL30X5mNbMkcWqSmfyO95vy4 EvaqBIWDVEyaPDbVvZ4JwvJ1lmjA/HimLuWRk7YWZm0eDFKnU/41w0FuOx8PVI7vJ+4V O4Dw== 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=cJOxC4zT9DX8wtZxWrAMEu7/hrUTyO4xfs9y6S9ASwE=; b=iD5DSbeLQ88Ix2x4U6sqbtJyicyLWag0GHxKpBVMMSvt00CIMZxWNUdCqWAmXC7FA5 cSLcLrUurTlWgS9FF4ZsJN2BMX+GTHG49nIvhC5ccM8Z83f9V3cboWRMY1L9TVAFVdKz /F5oKLXFzO6neOvjOnYGLcsKR7dcqKoC/mQaGNXmgA1QHWUvCAokw/nx/Mk9pjLxZMHU TNfQ7ePlA1UIQTJqNKMIqn2ybLJAURpMXmnmgds0VCOupbI4umFu3fbOlAwsAxqLM6Sz 0512p7+k/+67Ev2R+eK34Ql7OHUAU7QlbnjSzIrCc2OQAiYgJyzTAZ64YmHQ16aoCLuZ 9RqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ivnw7bYD; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si5511836plt.319.2022.01.17.19.23.38; Mon, 17 Jan 2022 19:23:51 -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=@kernel.org header.s=k20201202 header.b=ivnw7bYD; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244436AbiARCdh (ORCPT + 99 others); Mon, 17 Jan 2022 21:33:37 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:40636 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344145AbiARC3Q (ORCPT ); Mon, 17 Jan 2022 21:29:16 -0500 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 B4CFAB811FF; Tue, 18 Jan 2022 02:29:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C14D0C36AEB; Tue, 18 Jan 2022 02:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642472954; bh=lRjqPn9qJ+FH43bnGFmSyWZ6o80v/vkvabiW0x/dIYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ivnw7bYDh3zo5l8nWjNj2zu1NCtl+yYkOOvPYDluEr4G9sI1R5LyusBMSYUXjDBnB 29qfX0icdxDxs/sSWdfui88vlawiuDqjP+M2IysqdKnjCPOcX5vIJ4Ck6OkQc9fjmx Yk4WjpkTXHEe4ipI+CyYN5t5Dy044IuCU1vspNcbYyKG4ZxKgHj68C7VJEV/c3a3lz yInG7WMcfSoQ7ODicBvKj6leUTo9pdQPYAiEHGDU2Zv6k6UjdNiuR2ezVD7EwnSfpZ dgX0/BQe8tvRYGCkzFYDEPWBm43W74Lb1KKRKaK8xmdxesO5EcH3tG7P8LxPk4poRT GqVzZjBdWknag== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luiz Augusto von Dentz , Marcel Holtmann , Sasha Levin , johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org Subject: [PATCH AUTOSEL 5.16 175/217] Bluetooth: vhci: Set HCI_QUIRK_VALID_LE_STATES Date: Mon, 17 Jan 2022 21:18:58 -0500 Message-Id: <20220118021940.1942199-175-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118021940.1942199-1-sashal@kernel.org> References: <20220118021940.1942199-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 b45db0db347c6..dff4456bc7089 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -237,6 +237,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