Re: [PATCH] net: dsa: microchip: Use standard regmap locking
From: Paolo Abeni
Date: Tue Aug 27 2024 - 08:55:08 EST
On 8/22/24 21:53, Mark Brown wrote:
For unclear reasons the ksz drivers use custom regmap locking which is
simply a wrapper around a standard mutex.
According to the commit introducing such lock,
013572a236ef53cbd1e315e0acf2ee632cc816d4
the ksz driver family one regmap per register width (8/16/32), accessing
the same set of registers.
The locking implemented with the code removed here allows serializing
operations using different register widths.
Thanks,
Paolo