Re: [PATCH 1/3] pinctrl: cy8c95x0: Use single I2C lock

From: Andy Shevchenko
Date: Tue May 21 2024 - 13:26:42 EST


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?

--
With Best Regards,
Andy Shevchenko