Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1976713pxb; Fri, 5 Mar 2021 04:35:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbNWd+zASjvDbgIznFeBnCFxtxNfC4Gb37lNuwPG/hbHDwwU5jvNJrTuTcQwH5TSl2Dlf0 X-Received: by 2002:a17:906:4146:: with SMTP id l6mr2093125ejk.295.1614947758593; Fri, 05 Mar 2021 04:35:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614947758; cv=none; d=google.com; s=arc-20160816; b=YnD43czFWlhEco9rQc9c20DCmDIWHp1aShRD6sEPc7TVYPve9WKAIDiQoi338nEf3e Pa0dJONN71q1blRz9BOPQZJE5ts8NMnPfv+xV1EqzWE1789z2vcmqGRdrqOBJj1N0Vv7 IRkePXZf4iqbIU1RoWO11l6u/9b7Cn5gIsZ/FZ4dJYw2IGVhqnJfpzWSE0TeeW1M49uJ kI43QGb+LOoiwxdM2/KIgUHFe0Uov2ve1brJlu5MX/KmC8YxZp9fEaxcPT80xjvUohVE A00jcNZ8mHBftb6i9IGShMBdIy7MS++zQFIayNAUkaED5WYGT+YPuTjOFqVgmmDnjymR REAw== 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=vPJbwKQBxOHpX5MBEmcjN7X8SmwMZwPE75nnFPWTCYo=; b=clMVFq9YrYVZSh8cImG16SBkxYT7kTzgxUYq99cguvCNGK9tRukMfVjMxMugADSCBW y6LUphIuXLu5l+MuLYq4yAnOuly8HIlKH07RwVrI6WDG8DhXoFIYMtGc/TMM/MOO7oab g67HgBdInZWWYUWdLh/JZzniy1f9F0D94c+BsjDwL9U+SyP5j9nUo1VCCXqZnIntcjuz CqYJy8yYoGp6o0MOA45CYXfKmqhX31vg2vLvcJGddooVfGkAcKO0E6j19RqSjnGJFkEh cSkcmdr02BJeeA3qdX8Q34pemo+QcAvASKbEnpmri1yI/WRL0pfLWZlazA3VJG2OjaaG x5cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aMx3M1uR; 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 z15si1270771edm.187.2021.03.05.04.35.35; Fri, 05 Mar 2021 04:35:58 -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=aMx3M1uR; 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 S232308AbhCEMet (ORCPT + 99 others); Fri, 5 Mar 2021 07:34:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:45574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231675AbhCEMeD (ORCPT ); Fri, 5 Mar 2021 07:34:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB60A65012; Fri, 5 Mar 2021 12:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947642; bh=V6a1U7lqXlsAJ1tz5T1rGTO5KZF1D553XEr4KgUbrGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aMx3M1uR9gMeKi8VV8mrZPGuvv+35NAlwWxVrHWAemrxp5FGBljeerDqCOV4CuDV5 c4yEghWnepGTn+2xWUUqbe262Q4Uz2BE/GN/YoUkPoK6TuY+0Np+pKoUbLaqYPbYER bo4IYunoq7uwyW36NlLAD4uGcwN5eD20mhwgzDXE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claire Chang , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.4 32/72] Bluetooth: hci_h5: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for btrtl Date: Fri, 5 Mar 2021 13:21:34 +0100 Message-Id: <20210305120858.903241388@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305120857.341630346@linuxfoundation.org> References: <20210305120857.341630346@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: Claire Chang [ Upstream commit 7f9f2c3f7d99b8ae773459c74ac5e99a0dd46db9 ] Realtek Bluetooth controllers can do both LE scan and BR/EDR inquiry at once, need to set HCI_QUIRK_SIMULTANEOUS_DISCOVERY quirk. Signed-off-by: Claire Chang Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- drivers/bluetooth/hci_h5.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index e11af747395d..bf3e23104194 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c @@ -894,6 +894,11 @@ static int h5_btrtl_setup(struct h5 *h5) /* Give the device some time before the hci-core sends it a reset */ usleep_range(10000, 20000); + /* Enable controller to do both LE scan and BR/EDR inquiry + * simultaneously. + */ + set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &h5->hu->hdev->quirks); + out_free: btrtl_free(btrtl_dev); -- 2.30.1