Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp660416ybl; Fri, 30 Aug 2019 05:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuNbaT2uuhF6E08hH3+F7wJdaArLsd7f9jv33Exvwk9JLAUleJE/isrsHvw9j+A/R4neSt X-Received: by 2002:aa7:9e4f:: with SMTP id z15mr17218862pfq.89.1567167875152; Fri, 30 Aug 2019 05:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567167875; cv=none; d=google.com; s=arc-20160816; b=Pq5+EMsl0+VkyoCQt/n/O24Lcz3St3LR2cvi8qo/F/9qMH8XYcWOi2dbdzzxwVspOc OoqEKkjvNh2fnda6ZyM0az7czacO/zfziEmrjz7aHn46BAM8EjM+hA+1JTOCxqp6CYtj GTGyofRLYwgRvQA0DoUZ3qyRzCNDC6Rx8ClvAPDPJ4m/kLMsrwqAc7Y0fs52w5iVN1kn VrQ9dmGfP3mu1ubFE0Dpa5ebJ36pqajyostHMQ+d4zyQNJxZiz0Xh/9DjHvk6XLSpqV0 aeRfYW580xpiUhvJTyP6s/5BnT9lAPWB7FtDyj6GiUUPHf704PTmh1w5osLoMbn9WlOU WrPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:authenticated-by; bh=fP75c6KvmKSYSdbQC7UERnUj8mFuRcYJRGKNrGhp0X8=; b=nA+lu+Gbg2kgFtWE72YVIkrfQ9MkMTm9XLu25zt/jPNCBWCDQOektthW1aw0jk59nk O9k8d36gEF9DKsQAlQM3gSYpsaw+OBJDEdBBCbqevQ3mM4RynnddtEC2YLlgP8ZD6sjk VDTvLF6NyqeCqQpMV8xcc+nMqtaZJ2430tp31dSKRlyKyLGNsevejEgyX49hsmCe9iQw rY1Ns1PCNhC/eW75EyOUIVy6OcNPI6ypL1sK1Ke+XYSABw/Zt2BWJsopo3Av0s/nkQ1/ +7S136e7W4gkhBYELr4lVS8+PdhO5U7WGG2aNcCFxiSbRk2W41OK6SJbzDJt8N58QpBy tqnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si4391767pgk.246.2019.08.30.05.24.04; Fri, 30 Aug 2019 05:24:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727455AbfH3MYE (ORCPT + 99 others); Fri, 30 Aug 2019 08:24:04 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:55636 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfH3MYD (ORCPT ); Fri, 30 Aug 2019 08:24:03 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x7UCNjZG027521, This message is accepted by code: ctloc85258 Received: from RS-CAS02.realsil.com.cn (msx.realsil.com.cn[172.29.17.3](maybeforged)) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x7UCNjZG027521 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 30 Aug 2019 20:23:45 +0800 Received: from laptop-alex (172.29.36.155) by RS-CAS02.realsil.com.cn (172.29.17.3) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 30 Aug 2019 20:02:32 +0800 Date: Fri, 30 Aug 2019 20:02:14 +0800 From: Alex Lu To: Marcel Holtmann CC: Johan Hedberg , , , Max Chou Subject: [PATCH 1/2] Bluetooth: btrtl: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY Message-ID: <20190830120109.GA3033@laptop-alex> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [172.29.36.155] Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Alex Lu 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: Alex Lu --- drivers/bluetooth/btrtl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index 4f75a9b61d09..b7487ab99eed 100644 --- a/drivers/bluetooth/btrtl.c +++ b/drivers/bluetooth/btrtl.c @@ -641,6 +641,11 @@ int btrtl_setup_realtek(struct hci_dev *hdev) btrtl_free(btrtl_dev); + /* Enable controller to do both LE scan and BR/EDR inquiry + * simultaneously. + */ + set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks); + return ret; } EXPORT_SYMBOL_GPL(btrtl_setup_realtek); -- 2.21.0