Re: [PATCH v11 0/2] Bluetooth: btrtl: Add firmware format v3 support and RTL8922D

From: Luiz Augusto von Dentz

Date: Mon Nov 30 2026 - 12:27:14 EST


Hi Hilda,

On Wed, Nov 25, 2026 at 3:47 AM Hilda Wu <hildawu@xxxxxxxxxxx> wrote:
>
> This series adds support for the new Realtek firmware format v3 and for
> the first controller that uses it, the RTL8922D.
>
> Format v3 replaces the flat epatch container with a section/subsection
> layout that can carry several independently configurable images, selected
> by key id and IC cut, each with its own register fixups and optional
> per-image config file. Patch 1 adds the parser and the downloader. The
> new code lives in btrtl_enh.c, which is linked into the same module as
> btrtl_main.c, so the lifetime of the parsed image list follows the existing
> btrtl_device_info and no extra module or symbol_get() dependency is
> introduced. Support for the existing v1 and v2 firmware is unchanged.
>
> Patch 2 adds the RTL8922D id table entry, the matching quirks and the
> MODULE_FIRMWARE() entries. The firmware binary will be submitted to the
> linux-firmware project separately.
>
> Both patches are needed for a working RTL8922D. Patch 2 depends only on
> patch 1 and the series should be applied as a whole.
>
> btrtl.c is renamed to btrtl_main.c so that it and btrtl_enh.c can be
> built as one composite object while keeping the module name btrtl.ko.
> The CONFIG_BT_RTL option and the exported symbols are unchanged.
>
> v11 fixes a link error reported by the kernel test robot and addresses
> the Sashiko review of v10; see the changelog in patch 1.
>
> Testing was done on RTL8922D over USB (0bda:a82d, chip id 55) with
> rtl8922du_fw.bin; the boot log is included in patch 1.
>
> Alex Lu (1):
> Bluetooth: btrtl: Add firmware format v3 support
>
> Hilda Wu (1):
> Bluetooth: btrtl: Add the support for RTL8922D
>
> drivers/bluetooth/Makefile | 2 +
> drivers/bluetooth/btrtl.h | 87 ++-
> drivers/bluetooth/btrtl_enh.c | 794 ++++++++++++++++++++
> drivers/bluetooth/{btrtl.c => btrtl_main.c} | 238 ++++--
> drivers/bluetooth/btusb_main.c | 26 +-
> 5 files changed, 1066 insertions(+), 81 deletions(-)
> create mode 100644 drivers/bluetooth/btrtl_enh.c
> rename drivers/bluetooth/{btrtl.c => btrtl_main.c} (88%)
>
> --
> 2.34.1

netdev sashiko found the following problem:

https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261125084703.1578601-1-hildawu%40realtek.com

--
Luiz Augusto von Dentz