Re: [PATCH 1/3] pinctrl: cy8c95x0: Use single I2C lock
From: Linus Walleij
Date: Tue May 28 2024 - 07:59:09 EST
On Tue, May 21, 2024 at 7:25 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Tue, May 21, 2024 at 6:26 PM Patrick Rudolph
> <patrick.rudolph@xxxxxxxxxxxxx> wrote:
> >
> > Currently there are 3 locks being used when accessing the chip, one
> > in the driver and one in each regmap. Reduce that to one driver only
> > lock that protects all regmap and regcache accesses.
>
> Right. But please consider converting the driver to use cleanup.h.
> Dunno if it requires a separate patch or can be folded into this one
> as it seems you anyway touch almost all mutex calls in the code.
> Linus?
I think it's best to add a separate patch for this for bisection,
just right after this one.
Yours,
Linus Walleij