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 v10 0/2] Bluetooth: btrtl: Add firmware format v3 support and RTL8922D
Date: Fri, 20 Nov 2026 16:26:34 +0800	[thread overview]
Message-ID: <20261120082636.3834168-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.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.

Note that building btrtl.c and btrtl_enh.c as one composite object
renames the module from btrtl.ko to btrtl_core.ko.  The CONFIG_BT_RTL
option and the exported symbols are unchanged.

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     |   4 +-
 drivers/bluetooth/btrtl.c      | 226 +++++++---
 drivers/bluetooth/btrtl.h      |  87 +++-
 drivers/bluetooth/btrtl_enh.c  | 795 +++++++++++++++++++++++++++++++++
 drivers/bluetooth/btusb_main.c |  25 +-
 5 files changed, 1056 insertions(+), 81 deletions(-)
 create mode 100644 drivers/bluetooth/btrtl_enh.c

-- 
2.34.1


             reply	other threads:[~2026-11-20  8:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  8:26 Hilda Wu [this message]
2026-11-20  8:26 ` [PATCH v10 1/2] Bluetooth: btrtl: Add firmware format v3 support Hilda Wu
2026-11-20  8:26 ` [PATCH v10 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=20261120082636.3834168-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®