Re: [PATCH v2 5/8] iio: dac: ds4424: convert to regmap

Andy Shevchenko
2026-02-03T10:10:29Z

On Sun, Feb 01, 2026 at 05:16:53PM +0100, Oleksij Rempel wrote:
> On Sun, Feb 01, 2026 at 03:42:28PM +0100, Sander Vanheule wrote:
> > On Tue, 2026-01-27 at 07:09 +0100, Oleksij Rempel wrote:

...

> Which works mostly fine except of the cache initialisation. If I use
> num_reg_defaults_raw with REGCACHE_MAPLE as proposed by Andy
> Shevchenko, first access to regmap values over debugfs will explode with
> NULL pointer etc...

Yeah, this is known issue in regcache core. I don't remember how it was worked
around in pinctrl-cy8c95x0.c.

> If I remove num_reg_defaults_raw, I need to read register manually
> to init defaul values as implemented in v3.

--
With Best Regards,
Andy Shevchenko