mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hilda Wu <hildawu@realtek.com>
To: <marcel@holtmann.org>
Cc: <luiz.dentz@gmail.com>, <linux-bluetooth@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <alex_lu@realsil.com.cn>,
	<jason_mao@realsil.com.cn>, <zoey_zhou@realsil.com.cn>,
	<max.chou@realtek.com>, <kidman@realtek.com>,
	<arunr@valvesoftware.com>
Subject: [PATCH v11 0/2] Bluetooth: btrtl: Add firmware format v3 support and RTL8922D
Date: Wed, 25 Nov 2026 16:47:01 +0800	[thread overview]
Message-ID: <20261125084703.1578601-1-hildawu@realtek.com> (raw)

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


             reply	other threads:[~2026-11-25  8:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  8:47 Hilda Wu [this message]
2026-11-25  8:47 ` [PATCH v11 1/2] Bluetooth: btrtl: Add firmware format v3 support Hilda Wu
2026-11-25  8:47 ` [PATCH v11 2/2] Bluetooth: btrtl: Add the support for RTL8922D Hilda 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=20261125084703.1578601-1-hildawu@realtek.com \
    --to=hildawu@realtek.com \
    --cc=alex_lu@realsil.com.cn \
    --cc=arunr@valvesoftware.com \
    --cc=jason_mao@realsil.com.cn \
    --cc=kidman@realtek.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=max.chou@realtek.com \
    --cc=zoey_zhou@realsil.com.cn \
    /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

all inboxes | Powered by JetHome®