Re: [PATCH 0/6] iio: debugfs register access through regmap in the core

From: Andy Shevchenko

Date: Tue Nov 24 2026 - 05:57:31 EST


On Tue, Nov 24, 2026 at 10:50:03AM +0200, Andy Shevchenko wrote:
> On Tue, Nov 24, 2026 at 08:50:10AM +0200, Rupesh Majhi wrote:
> > More than 25 IIO drivers have a debugfs_reg_access callback that is
> > only a regmap_read() or regmap_write() on the regmap of the parent
> > device. Patch 1 adds a core helper for that, patches 2 to 5 use it in
> > four drivers and patch 6 adds register access to dps310 with it. The
> > other drivers can follow in batches if the helper is wanted.
> >
> > The helper finds the regmap with dev_get_regmap() on the parent, so it
> > only fits drivers with one regmap there. Existing callbacks that take a
> > lock or claim direct mode around the access are left alone.
>
> Nice! But I think we want a bit more to do to prepare for this change.
> I was triggered by regmap.h include in IIO core.
>
> I can see the first patch in the series to split debugfs bits into
> industrialio-debugfs.c first, and then your first patch builds on
> top of that.

I just sent one separately, feel free to include into your v2.
20261124094502.557175-1-andriy.shevchenko@xxxxxxxxxxxxxxx

--
With Best Regards,
Andy Shevchenko