Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp390564pxb; Tue, 19 Oct 2021 05:08:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlzX19n7O98rlUbq0ZtI7T4KGaSbf1Ph9c39eKcnqFSHwFXhR+Df4aXou9PGJy71tdKgYL X-Received: by 2002:a17:90b:4f4c:: with SMTP id pj12mr5992786pjb.231.1634645335175; Tue, 19 Oct 2021 05:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634645335; cv=none; d=google.com; s=arc-20160816; b=LPHGPuRs8al5aRWLBuNebIPSJEm62BoZDAhy+It2Y268SiRtfH9N3qcqmTesRnSZuP fa3k+yi/ClgP1pb59cgEq+OT4AifoT1EsRvVsGCBuTT/XRRRA3Gd15uFPVj67b36jx9J 6ixVsNkHYYU3TCkGuE3uDuJQh5JjiyYjl2fTFUeJvIHEOeolKJh9w8My2DwsSDC/dMe8 ETvpt90qN71qlClu5YrzjIBTG+1HbTefd8v8ajiPaYYYtCO2GWbXgg0zYpEh/k8MmsT1 4Suc5uXoYTgjbzCipIMonI5TC6GcyOe2dD7S/MXV2Yeq0h+/ApnmCzo6RcGeNWdOJNNT 3OOw== 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=FVIQT82jcRb7GPMNtR+z9+ttpCLcsjQyVlSrcNJwXOo=; b=JeEUYxKIfjAxI/ALPYl28KHm+xUbJEEW6TSBDLTuE2+/xPoACFwhykGhjjCphO7eMJ ozIIG4/x6ShXNi/NDhZwMjov2suDlMFoLj7r7qslzL4JGmbQIReUOQt6qqdvPwWAtJLG CIIJeKvpDHVe+INcUnPMmFvb21//x61KuAhSzrN+cg8MxQ+KZCZf1+oSHSDsRUB5ozWK y+Ns97xlmFZdDuFtuhd54o2z8uB3DbJJjsZcN8aPNCDeZqz2tS1g+NbU7lZxmtddFBGi zqeCCWpDp4R0dJmc5jKozkvXu66GA+dVeBYXiQuYZ77ZcAb9VdBjWbD/aS1SPkhN+i4E YUOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EX+vS61J; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 j72si10550865pge.272.2021.10.19.05.08.26; Tue, 19 Oct 2021 05:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=EX+vS61J; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S235571AbhJSMJn (ORCPT + 99 others); Tue, 19 Oct 2021 08:09:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235566AbhJSMJm (ORCPT ); Tue, 19 Oct 2021 08:09:42 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9AB1C061745 for ; Tue, 19 Oct 2021 05:07:29 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id q10-20020a17090a1b0a00b001a076a59640so1838778pjq.0 for ; Tue, 19 Oct 2021 05:07:29 -0700 (PDT) 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=FVIQT82jcRb7GPMNtR+z9+ttpCLcsjQyVlSrcNJwXOo=; b=EX+vS61JMITPqLH96+nqUjYjcawuaPHoSesPYtZl1n7rBxiwMf2CPx/+7ad2X7WcuS kW8kp5lC6ebvYfNylNrL0KzX3tR0lDDDStyiQC9S9qO7CvZAiy/XJN0LaaebFnT+n3Ns E1+rykixHr7OAAQVvKS7e6ZQi53IZ5JY05XqM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FVIQT82jcRb7GPMNtR+z9+ttpCLcsjQyVlSrcNJwXOo=; b=pG1IpTZEGAFiR42R2qRq5k8AEad/2dMo2JBrU7k4XRBBR9qNAPxFD6cd+EBzqjgnaJ B4nhcT4skGspnoZjUBdhuDot82EEOHWwtQrWli7aGSEzVxIgVpL/0rpP8HU/6eI2JyUl v514ClHD8JkpYymiAomBFkJq1gqjhzNfwiWsdqlmpFombNHbI8ZR3flP9i4qTg8964qN mgaxncemPqZORulhMdJXDW0mdSBjN8YBc9dIhjAkJ+yNAZ/o1gKJI/Jfl2l9xuhWj4va vWxwbp68PfVYQ6y/dINwWZDG/Y3L7GGhhqXEzWlukJGHprwxqXO7zGxdG072Utab+Cx+ mwVA== X-Gm-Message-State: AOAM532oqk62M1/mbaqfRazuDr5vkG99M0EDhG70NadGjLNfAO6sJbSz IWyL8oComLE7cy6Bw8vVO25YXPeRwP8LMw== X-Received: by 2002:a17:90b:4f90:: with SMTP id qe16mr6333304pjb.137.1634645249158; Tue, 19 Oct 2021 05:07:29 -0700 (PDT) Received: from josephsih-z840.tpe.corp.google.com ([2401:fa00:1:10:1d7c:b745:dee:c8a4]) by smtp.gmail.com with ESMTPSA id k16sm5236160pgt.57.2021.10.19.05.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 05:07:28 -0700 (PDT) From: Joseph Hwang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, pali@kernel.org Cc: josephsih@google.com, chromeos-bluetooth-upstreaming@chromium.org, Joseph Hwang , Miao-chen Chou , Mark-YW Chen , Johan Hedberg , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v5 3/3] Bluetooth: btusb: enable Mediatek to support AOSP extension Date: Tue, 19 Oct 2021 20:07:15 +0800 Message-Id: <20211019200701.v5.3.I257ac5cfaf955d15670479efc311bbab702397f4@changeid> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211019200701.v5.1.I139e71adfd3f00b88fe9edb63d013f9cd3e24506@changeid> References: <20211019200701.v5.1.I139e71adfd3f00b88fe9edb63d013f9cd3e24506@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch enables Mediatek to support the AOSP extension. Reviewed-by: Miao-chen Chou Reviewed-by: Mark-YW Chen Signed-off-by: Joseph Hwang --- Changes in v5: - Let the vendor command in aosp_do_open() to determine what capabilities are supported. Changes in v4: - Call hci_set_aosp_capable in the driver. - This patch is added in this Series-changes 4. drivers/bluetooth/btusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 87b71740fad8..30c63031592d 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -3876,6 +3876,7 @@ static int btusb_probe(struct usb_interface *intf, hdev->set_bdaddr = btusb_set_bdaddr_mtk; set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks); data->recv_acl = btusb_recv_acl_mtk; + hci_set_aosp_capable(hdev); } if (id->driver_info & BTUSB_SWAVE) { -- 2.33.0.1079.g6e70778dc9-goog