[GIT PULL] regmap updates for v7.4-2
From: Mark Brown
Date: Thu Oct 22 2026 - 08:31:20 EST
The following changes since commit d5a821f66047c2effd06147b84775f9b2ce0f4aa:
regmap: Fix cache lifecycle locking and teardown (2026-10-13 00:11:44 +0100)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-v7.4-2
for you to fetch changes up to 2dee91ee94eec85d09c13c7ca83e3005906d3732:
regmap: Merge up fixes (2026-10-19 19:23:44 +0100)
----------------------------------------------------------------
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 (5):
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
regmap: Merge up fixes
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 | 119 ++++++++++----------
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, 310 insertions(+), 285 deletions(-)