On Fri, Jan 17, 2025 at 05:15:06PM +0200, Andy Shevchenko wrote: > On Fri, Jan 17, 2025 at 05:13:36PM +0200, Andy Shevchenko wrote: > > On Fri, Jan 17, 2025 at 04:01:43PM +0100, Patrick Rudolph wrote: > > > On Fri, Jan 17, 2025 at 3:23 PM Andy Shevchenko > > > <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > > > > > > > We don't provide defaults for the regmap, we shouldn't provide > > > > the number of them either. > > > The intention is to read back the defaults from HW to initialize the > > > regmap cache. > > > The defaults are applied at each POR from the device's internal EEPROM. > > > See regcache_hw_init() for details. > > > > Yes, I was looking a lot and that code and it doesn't work as intended. > > I can reproduce the issue, but it's real issue and I don't think we need > > to read back anything from the HW forcibly. It will be done naturally, no? > > I think I now remember, it has a NULL pointer dereference. FWIW, okay, it was induced by a fix in regmap core, so this NULL pointer dereference is for real, but it's a regression in the regmap core. For the reference read this thread: 20250116124303.3941583-1-andriy.shevchenko@xxxxxxxxxxxxxxx. -- With Best Regards, Andy Shevchenko