From: Mengshi Wu <mengshi.wu@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Bartosz Golaszewski <brgl@kernel.org>,
Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
linux-arm-msm@vger.kernel.org, linux-bluetooth@vger.kernel.org,
linux-kernel@vger.kernel.org, shuai.zhang@oss.qualcomm.com,
cheng.jiang@oss.qualcomm.com, chezhou@qti.qualcomm.com,
wei.deng@oss.qualcomm.com, yiboz@qti.qualcomm.com
Subject: Re: [PATCH v1 1/2] Bluetooth: hci_qca: Refactor HFP hardware offload capability handling
Date: Tue, 27 Jan 2026 00:20:15 +0800 [thread overview]
Message-ID: <5b62b672-d6fe-42e1-bf31-15ec16ed7d3d@oss.qualcomm.com> (raw)
In-Reply-To: <mt4j2cxliqkwbeprt7ye2kt2cgi2bjfnz2knfgxvy7fy6wda3p@jadb7x7ocagi>
Hi,
On 1/24/2026 3:26 AM, Dmitry Baryshkov wrote:
> On Fri, Jan 23, 2026 at 01:52:42PM +0800, Mengshi Wu wrote:
>> Replace SoC-specific check with capability-based approach for HFP
>> hardware offload configuration. Add QCA_CAP_HFP_HW_OFFLOAD capability
>> flag and support_hfp_hw_offload field to qca_serdev structure.
>>
>> Signed-off-by: Mengshi Wu <mengshi.wu@oss.qualcomm.com>
>> ---
>> drivers/bluetooth/hci_qca.c | 10 +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> @@ -2033,7 +2034,7 @@ static int qca_setup(struct hci_uart *hu)
>> else
>> hu->hdev->set_bdaddr = qca_set_bdaddr;
>>
>> - if (soc_type == QCA_QCA2066)
>> + if (qcadev->support_hfp_hw_offload)
>
> At this point QCA2066 becomes broken until the next commit. This is not
> a proper way to do things. At the very least, squash the first chunk of
> your next commit into this patch.
Thanks for comments. I will fix this.
>
>> qca_configure_hfp_offload(hdev);
>>
>> qca->fw_version = le16_to_cpu(ver.patch_ver);
>> @@ -2502,6 +2503,9 @@ static int qca_serdev_probe(struct serdev_device *serdev)
>>
>> if (!(data->capabilities & QCA_CAP_VALID_LE_STATES))
>> hci_set_quirk(hdev, HCI_QUIRK_BROKEN_LE_STATES);
>> +
>> + if (data->capabilities & QCA_CAP_HFP_HW_OFFLOAD)
>> + qcadev->support_hfp_hw_offload = true;
>> }
>>
>> return 0;
>> --
>> 2.34.1
>>
>
--
Best regards,
Mengshi Wu
next prev parent reply other threads:[~2026-01-26 16:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-23 5:52 [PATCH v1 0/2] Bluetooth: hci_qca: Refactor HFP hardware offload capability handling Mengshi Wu
2026-01-23 5:52 ` [PATCH v1 1/2] " Mengshi Wu
2026-01-23 19:26 ` Dmitry Baryshkov
2026-01-26 16:20 ` Mengshi Wu [this message]
2026-01-23 5:52 ` [PATCH v1 2/2] Bluetooth: hci_qca: Enable HFP hardware offload for QCA2066 and WCN6855 Mengshi Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b62b672-d6fe-42e1-bf31-15ec16ed7d3d@oss.qualcomm.com \
--to=mengshi.wu@oss.qualcomm.com \
--cc=brgl@kernel.org \
--cc=cheng.jiang@oss.qualcomm.com \
--cc=chezhou@qti.qualcomm.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=shuai.zhang@oss.qualcomm.com \
--cc=wei.deng@oss.qualcomm.com \
--cc=yiboz@qti.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox