[PATCH v2 0/5] regcache: Avoid accessing non-initialised cache
From: Andy Shevchenko
Date: Wed Feb 25 2026 - 11:18:46 EST
Refactor regcache flow that populates cache on initialisation phase
based on the values in HW. This makes code robust against any possible
accesses to not-fully initialised caches.
Changelog v2:
- rebased on top of the latest regmap changes (Mark)
- added two more little cleanups (patches 4 & 5)
Andy Shevchenko (5):
regcache: Remove duplicate check in regcache_hw_init()
regcache: Split regcache_count_cacheable_registers() helper
regcache: Move HW readback after cache initialisation
regcache: Define iterator inside for-loop and align their types
regcache: Amend printf() specifiers when printing registers
drivers/base/regmap/internal.h | 2 +-
drivers/base/regmap/regcache.c | 57 ++++++++++++++++++----------------
2 files changed, 32 insertions(+), 27 deletions(-)
--
2.50.1