Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1582329pxb; Mon, 13 Sep 2021 00:32:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgrGPUnY/ErflufHRanSSc3ppiygZnuQGpKfyNiElz4tDhzlkjOFX8QAvt6ozolT3ji8/6 X-Received: by 2002:a05:6402:386:: with SMTP id o6mr6147396edv.110.1631518350048; Mon, 13 Sep 2021 00:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631518350; cv=none; d=google.com; s=arc-20160816; b=CWJfoH5lSqRypDpW9vDb5CxItD7zv8I2tDP091NOU6fzCmApW8L2j/EDIM466aVbxD qxhwoPmza87rqW4HF8LRADPwuFY2f4d2Oyn0axK+7YhfLi2v/sk8RnKU+JF88MqKzWl5 9857thIJGOw+hMverisb2nYLbh6AfuU20Ksm7FE/c2KT8QheSYLy4IdhtQ9+iwwBxzUX o7ygLgTnOlwqHXDNM41FXLnPQ4GHx1isFoSvAo1m9yFct5vdZnecHPzNj/supBGjWkkK g3lTvOurN68WHJnePXwi85xQO6FAou31qqAY5xpyHxrwPMwNof2sXF0W8i3Ri05bvt0/ 7plw== 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=9zCYdlsfppNPwVWp82IXgP0ehxEmeMjdmzKt1MZjwpc=; b=q44TYGgdFsEkp0MIMFogD2J7ymmEK8eZHL5i+3vtOJQXBKnvPotYIZdx7pe4H9tM4j 4hVVvctB0r7ySJC/blwhmKlVTrqPjdVPckenDNZ5KLPs+PIWs1uuDkwSBgQVolzKA2+J P5Vgme//IQWIYuGI8nhYZUTNdYNtG211PBlhm1m3a+XxMotBMM6Lz9P3wvhl4uoDZm4f 0gDH7t6Ce8+MYLCCZdBoDkyC5e2uCXQXOFZ2taDcM67auDLfHuaLugbBbWWFJ2tVfGnm w8Dd3VtyT1FaNf1F8aQyNoyR67swJAD7XKdh926UiHn5GDavcIqtbAMYm6c7vuBbrcgd 8y1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZeEsB1XI; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl25si6664245ejc.370.2021.09.13.00.32.06; Mon, 13 Sep 2021 00:32:30 -0700 (PDT) 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=@chromium.org header.s=google header.b=ZeEsB1XI; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237678AbhIMHaH (ORCPT + 99 others); Mon, 13 Sep 2021 03:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237587AbhIMHaE (ORCPT ); Mon, 13 Sep 2021 03:30:04 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 184EAC061574 for ; Mon, 13 Sep 2021 00:28:49 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id e7so8640253pgk.2 for ; Mon, 13 Sep 2021 00:28:49 -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=9zCYdlsfppNPwVWp82IXgP0ehxEmeMjdmzKt1MZjwpc=; b=ZeEsB1XIs3wKP/Y06tvwmKpkvoqpXUDgLh+NB8aheVtSoCD0+c7ke5/nieY5wg7762 yUn8jWrxLXlx7bYEIXgVtkuO/eUwATPTfTygZrDa9/ytM954YQLk5QQpA/Cu1rxcF1Lg XM+6fdhfKiXJ1qAXKo1TNiZvtctlLua6xUo6E= 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=9zCYdlsfppNPwVWp82IXgP0ehxEmeMjdmzKt1MZjwpc=; b=fDxiMX82/NzMeGDQsg7aXNZFPR/FwCW1KGqbGzeHbUNs2+3YYX/s5hVqfqBV55ueBW yBN5Xfc1oRmY57/9DpmlWT846YbksD0XjBqMeElc5fU7AIiT20+hDP8MlelGGoocwkPD mfuzblWQSM5d8bLabNI25eslHL7yEg/pHcxNts6i8AZyRP1bKEFW+bpMnOOt6mO20r0v wNEqqALqmjsEwVwN/L2PT4/VHdKRJ/BloRxzMAd/QFLuQ+RZ/4CLaiQ0g7rFRA0YDQT+ EYllI5BDsBzdDpwXY2nA80PfYoYEkZT/L1+KESbQrl3+75ybFY/9DYENYbZN+I0LeFCv u33g== X-Gm-Message-State: AOAM532XRnQoXorSD9d9ka14mX/8vTEZiq0RhTyX2rbQ2ETZFFntyjuA NLVu1uFYBEhx2sFYMVZZjDlaUA== X-Received: by 2002:a63:7112:: with SMTP id m18mr9993627pgc.93.1631518128727; Mon, 13 Sep 2021 00:28:48 -0700 (PDT) Received: from josephsih-z840.tpe.corp.google.com ([2401:fa00:1:10:b418:a601:c444:4951]) by smtp.gmail.com with ESMTPSA id g8sm5688019pfv.51.2021.09.13.00.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 00:28:48 -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 , kernel test robot , Miao-chen Chou , Johan Hedberg , linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] Bluetooth: btrtl: Set up Realtek 8822CE for Android BQR commands Date: Mon, 13 Sep 2021 15:28:38 +0800 Message-Id: <20210913152801.v3.3.Ic8dcac2622d16775748f9d36c0a5e893372aa48d@changeid> X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog In-Reply-To: <20210913152801.v3.1.I17f57656757b83a1c0fb4b78525d8aca581725db@changeid> References: <20210913152801.v3.1.I17f57656757b83a1c0fb4b78525d8aca581725db@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch sets up Realtek 8822CE to support the Android BQR commands. Reported-by: kernel test robot Reviewed-by: Miao-chen Chou Signed-off-by: Joseph Hwang --- Changes in v3: - Fix the auto build test ERROR "undefined symbol: btandroid_set_quality_report" that occurred with some kernel configs. Changes in v2: - Fix the title drivers/bluetooth/btrtl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index 1f8afa0244d8..e0bcdbe03eca 100644 --- a/drivers/bluetooth/btrtl.c +++ b/drivers/bluetooth/btrtl.c @@ -14,6 +14,7 @@ #include #include "btrtl.h" +#include "btandroid.h" #define VERSION "0.1" @@ -740,12 +741,13 @@ void btrtl_set_quirks(struct hci_dev *hdev, struct btrtl_device_info *btrtl_dev) /* Enable central-peripheral role (able to create new connections with * an existing connection in slave role). */ - /* Enable WBS supported for the specific Realtek devices. */ + /* Enable WBS and quality report supported by the specific devices. */ switch (btrtl_dev->project_id) { case CHIP_ID_8822C: case CHIP_ID_8852A: set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks); + hdev->set_quality_report = btandroid_set_quality_report; break; default: rtl_dev_dbg(hdev, "Central-peripheral role not enabled."); -- 2.33.0.309.g3052b89438-goog