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

From: Andy Shevchenko

Date: Tue Feb 03 2026 - 05:14:03 EST


On Tue, Feb 03, 2026 at 12:10:29PM +0200, Andy Shevchenko wrote:
> 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.

That said, have you run the v6.19-rcX kernels? It should have some patches
related to the regcache, but I need to test and send the actual fix for that
NULL case.

> > 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