mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] regcache: Avoid accessing non-initialised cache
@ 2026-02-10 16:09 Andy Shevchenko
  2026-02-10 16:09 ` [PATCH v1 1/3] regcache: Remove duplicate check in regcache_hw_init() Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andy Shevchenko @ 2026-02-10 16:09 UTC (permalink / raw)
  To: linux-kernel, Oleksij Rempel
  Cc: Mark Brown, Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich

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.

Andy Shevchenko (3):
  regcache: Remove duplicate check in regcache_hw_init()
  regcache: Split regcache_count_cacheable_registers() helper
  regcache: Move HW readback after cache initialisation

 drivers/base/regmap/regcache.c | 44 ++++++++++++++++++++--------------
 1 file changed, 26 insertions(+), 18 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-25 19:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-10 16:09 [PATCH v1 0/3] regcache: Avoid accessing non-initialised cache Andy Shevchenko
2026-02-10 16:09 ` [PATCH v1 1/3] regcache: Remove duplicate check in regcache_hw_init() Andy Shevchenko
2026-02-10 16:09 ` [PATCH v1 2/3] regcache: Split regcache_count_cacheable_registers() helper Andy Shevchenko
2026-02-10 16:09 ` [PATCH v1 3/3] regcache: Move HW readback after cache initialisation Andy Shevchenko
2026-02-22 23:53   ` Mark Brown
2026-02-25 19:07 ` [PATCH v1 0/3] regcache: Avoid accessing non-initialised cache Mark Brown

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®