[GIT PULL] regmap updates for v7.4

From: Mark Brown

Date: Wed Oct 21 2026 - 07:03:58 EST


The following changes since commit 93f51579e7df248780214094418f205253383cc5:

Linux 7.3-rc4 (2026-09-20 13:48:15 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-v7.4

for you to fetch changes up to f52260f49b107fddbcf7c75f9cf2347a5031f0f7:

regmap: debugfs: Use __free(kfree) for regmap_reg_ranges_read_file (2026-10-08 09:46:00 +0200)

----------------------------------------------------------------
regmap: Changes for v7.4

This is a relatively busy release, mostly due to the general cleanup
work which people have been doing throughout the kernel - for regmap
that's mostly been some work from Peng Fan. I also added some more
tests for the sparse caches to catch some gotchas people might run into
trying to improve the maple cache.

- Test very high register numbers to help people avoid a nasty gotcha
trying to optimise the maple cache.
- Make more use of scoped lock and allocation guards.
- A couple of other smaller improvements and fixes.

----------------------------------------------------------------
Hemanth Selam (1):
regmap: fix typo "asynchrnous" in comment

Mark Brown (4):
regmap: Allow a base register to be specified for the RAM regmap
regmap: Test rbtree and maple caches for very high register numbers
regmap: convert map->lock/unlock users to a scoped guard
regmap: cleanups for regcache and regmap init paths

Peng Fan (12):
regmap: convert lock/unlock to a scoped guard
regcache: use the regmap scoped lock guard
regcache: rbtree: use the regmap scoped lock guard
regmap: debugfs: use the regmap scoped lock guard
regcache: extract locked helpers to replace open-coded lock/unlock pairs
regcache: extract __regcache_sync() to deduplicate sync dispatch
regcache: simplify control flow and reduce nesting
regmap: use krealloc_array() in regmap_register_patch()
regmap: fix potential double-free of map->reg_defaults on cache reinit
regmap: debugfs: Use __free(kfree) in regmap_name_read_file()
regmap: debugfs: Use guard to simplify code
regmap: debugfs: Use __free(kfree) for regmap_reg_ranges_read_file

drivers/base/regmap/internal.h | 12 +++
drivers/base/regmap/regcache-rbtree.c | 4 +-
drivers/base/regmap/regcache.c | 156 ++++++++++++---------------
drivers/base/regmap/regmap-debugfs.c | 118 +++++++++-----------
drivers/base/regmap/regmap-kunit.c | 98 ++++++++++++++++-
drivers/base/regmap/regmap-ram.c | 26 +++--
drivers/base/regmap/regmap-raw-ram.c | 21 ++--
drivers/base/regmap/regmap.c | 197 +++++++++++-----------------------
8 files changed, 325 insertions(+), 307 deletions(-)