Re: [PATCH 4/4] Bluetooth: qca: combine NVM and calibration data for QCC2072

From: Yepuri Siddu

Date: Mon Jun 01 2026 - 06:20:11 EST




On 6/1/2026 3:20 PM, Dmitry Baryshkov wrote:
On Fri, May 29, 2026 at 11:34:31PM +0530, Yepuri Siddu wrote:
QCC2072 requires the NVM and calibration data to be delivered to the
controller bundled together in an outer TLV of type 4. After loading
the NVM file, load the calibration file (qca/ornbcscal<ver>.bin) and
combine both into a single buffer with the outer TLV header before
passing it to qca_tlv_check_data().

The outer TLV header encodes the combined payload length in the high
24 bits and type 4 in the low 8 bits of the type_len field.

If the calibration file is unavailable, fall back to downloading the
NVM alone.

Signed-off-by: Yepuri Siddu <yepuri.siddu@xxxxxxxxxxxxxxxx>
---
drivers/bluetooth/btqca.c | 47 +++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

This is only patch 4/4. For the future submissions please make sure that
you submit the whole set of patches as a single thread. Or, if it was
really supposed to be a single patch, make sure that you generate your
patches correctly. The general suggestion now is to use the b4 tool to
maintain your patches as it significantly automates and simplifies the
workflow.


Noted, will ensure all patches are submitted as a single thread in v2,
and will look into using the b4 tool to streamline the workflow.

--
Best regards,
Siddu