Re: [RFT PATCH] hwmon: (spd5118) Add support for Renesas/ITD SPD5118 hub controllers

From: Guenter Roeck
Date: Mon Jun 17 2024 - 11:28:12 EST


On Mon, Jun 17, 2024 at 12:50:41AM +0200, Armin Wolf wrote:
[ ... ]
> >
> > This results in
> >
> > spd5118 0-0050: Range 0: selector for 1 in window
> > spd5118 0-0050: error -EINVAL: regmap init failed
> >
> > If you have an idea how to configure the ranges differently,
> > please let me know.
> >
> > Thanks,
> > Guenter
> >
> Oh, i did not think of this. In this case we indeed cannot use regmap here. I will test the patch tomorrow.
>

That would be great. As for using regmap for paging, it actually
works if I remove the selector restrictions. I'll try to get the
restrictions removed or relaxed, but that will take some time. I'd
like to keep this patch separate from that effort. If it succeeds,
I'll send a follow-up patch to introduce regmap based paging.

Thanks,
Guenter