Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1580810pxb; Mon, 13 Sep 2021 00:30:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytJjMQnYuMeYMJIiYTrOeWIuoh35o/V/U7a9W/uB9EKenH9InmGWxM2LoiWZAVE9fanTZ+ X-Received: by 2002:a05:6e02:1206:: with SMTP id a6mr7138692ilq.273.1631518204057; Mon, 13 Sep 2021 00:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631518204; cv=none; d=google.com; s=arc-20160816; b=s//YwJ/WG4SssJ48Iyl1Rj1CDFMEy+FY8VVyPGh3ckvbkz+gnKoC7ZO2udE3MivT7j j8J6k9vJS9Pm12ZQuzb7zF4YA19fCSG1SfgEclFsyLRj0Vbj2uCNqYokTAMOSCprjiDV jR3LSUB1aRmzKfF0moiBwEhIinl1/73GM5JIR8RIyMNL7o4YeFNFECprtkRQPUKnTlaV rO8dpp/rY5ZWk1jGUooFS/FRA6Fm+0nSif7BErBpyI6EK8skogkKzrJHtQYUS5kbZAyf Tx0hE18PexEGeXo2HUGUqt6K44heU/nWr7VrdM3BM0+Q6xM0w1tm73YpOK2YCBygv1kL Hnyg== 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=Wzr/tDY+SZhvYSJPQ+K7kJlNJzjJfxAyxq+7vt2n+E8=; b=dNgKBTB2qMcK67dADlb6aZwSuYO5z7bYI64KTBkc2/1nN4za5chxJocpVp1XlZ7xrS 4CqwunORg06oWZ5x2yUjC513gc3MOM2exxO9xrxG6kkDldeMU98oSBi8WL/2TkvAYOpA YBgnV+plhS56sLU/1jnlqiQ0ijOvn1YcXEb+upjuvQt5GXWNrBc3Bh6C8Za8eWKAj5Ay Ua2mucfoNZYVa5dy7D5diqRyGKpm2Nd3aa6M2cxGYDYGdRNxXKg3xucxZKKnbNl/CIQG 4FAZWcqM0nuV+/hki4YYbfeT3QCD6bmrGq4wGwsIBZvv/AQo5YXe/JsL4qNUvKIBMzOn RkxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PapxB+4e; 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 b8si6775897ios.12.2021.09.13.00.29.52; Mon, 13 Sep 2021 00:30:04 -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=PapxB+4e; 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 S237662AbhIMHaE (ORCPT + 99 others); Mon, 13 Sep 2021 03:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237645AbhIMHaC (ORCPT ); Mon, 13 Sep 2021 03:30:02 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4FB6C061766 for ; Mon, 13 Sep 2021 00:28:46 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id w7so8606615pgk.13 for ; Mon, 13 Sep 2021 00:28:46 -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=Wzr/tDY+SZhvYSJPQ+K7kJlNJzjJfxAyxq+7vt2n+E8=; b=PapxB+4evxTDIxxsBZs5sP8wB4RESQHtmXbaiuABpZbRCivOVxFr/xnYn3ArvE2x45 OkkT3PnMsDFTkOaZVqSgJa5Y27vFcvLL83iIUQfY6XO4XW2zayPuyH5wKFrHvZUva2DT 5r154psCD4xPSSTD9vZmEwoY3Qikmhp9FVIQ0= 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=Wzr/tDY+SZhvYSJPQ+K7kJlNJzjJfxAyxq+7vt2n+E8=; b=bUktRS6V2STQW4Oegs0FMVVhX4Wly4gh1NpiuXLc4fVl/I0680RPRQIEg3kEKSzgeN vkWy4JuKxpekdTSec5ykalLQ19Pfssm2h62kiMX2+rJG0pi+5chr6RLaq7aBYQnDhaD3 IZeRKhitQiYnjVED3wt6Cm3a7F7PAk+w055D3R/hYIt2fDwMSHarguUnbf/Z4I4McD1w h9u4bwoMj/Pbzo1ZhXAnd5lS992p/hcgZFXEjC1ulmp4l6k1md2uSL4YwMNR6jfr88jv +O8hcfvIdptrlo46GjHTKpDllbygsCXLTdsNpmbIPBBtzKsItgG+AcO4iTfApDIenPYl zDHg== X-Gm-Message-State: AOAM53322D9Jutc8WZ0iSeDuPswhwSXUWvddcSOI2U7nGHyCMYdYAaFh rwYYVLIBn9uCEVS66ugw3GPdJg== X-Received: by 2002:a62:16c8:0:b0:43d:d6b8:f38 with SMTP id 191-20020a6216c8000000b0043dd6b80f38mr2948110pfw.9.1631518126387; Mon, 13 Sep 2021 00:28:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 00:28:46 -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 2/3] Bluetooth: hci_qca: Set up Qualcomm WCN399x for Android BQR commands Date: Mon, 13 Sep 2021 15:28:37 +0800 Message-Id: <20210913152801.v3.2.Ie2014b5e6ed62dee26015805cf9c9b00d8dc64e5@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 Qualcomm WCN399x 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/hci_qca.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 53deea2eb7b4..bf576046681d 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -38,6 +38,7 @@ #include "hci_uart.h" #include "btqca.h" +#include "btandroid.h" /* HCI_IBS protocol messages */ #define HCI_IBS_SLEEP_IND 0xFE @@ -1730,6 +1731,7 @@ static int qca_setup(struct hci_uart *hu) if (qca_is_wcn399x(soc_type) || qca_is_wcn6750(soc_type)) { set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks); + hdev->set_quality_report = btandroid_set_quality_report; ret = qca_read_soc_version(hdev, &ver, soc_type); if (ret) -- 2.33.0.309.g3052b89438-goog