Re: [PATCH v1 0/3] regcache: Avoid accessing non-initialised cache

From: Mark Brown

Date: Wed Feb 25 2026 - 14:07:32 EST


On Tue, 10 Feb 2026 17:09:07 +0100, Andy Shevchenko wrote:
> FIXME cover letter
>
> Some caches may not allow writes before full initialisation is done.
> In particular on REGMAP_MAPLE caches when we want to populate cache
> with the values (reg_defaults_raw == NULL && num_reg_defaults_raw != 0)
> from HW, the NULL pointer dereference may happen. Address this by moving
> the IO after cache initialisation is done.
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next

Thanks!

[1/3] regcache: Remove duplicate check in regcache_hw_init()
commit: 1fcf171178f021ef2005d47e281544624b93c5a5
[2/3] regcache: Split regcache_count_cacheable_registers() helper
commit: c2bcf62ca75c541ec4297e6ff02a68ddc2e02029
[3/3] regcache: Move HW readback after cache initialisation
(no commit info)

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark