Re: [PATCH] regmap: allow to disable all locking mechanisms

From: Mark Brown
Date: Tue Dec 12 2017 - 07:18:43 EST


On Tue, Dec 12, 2017 at 12:42:47PM +0100, Lars-Peter Clausen wrote:
> On 12/06/2017 03:26 PM, Bartosz Golaszewski wrote:

> > + * @disable_locking: This regmap is either protected by external means or
> > + * is guaranteed not be be accessed from multiple threads.

> To guarantee this you need to make sure that a regmap instance with this
> flag set does not register a debugfs interface. debugfs file access happens
> from a userspace process and hence could (and probably) is in a different
> thread than the driver regmap access.

That's true, and the debugfs is world readable too so we can't just say
it's up to root to be sensible.

Attachment: signature.asc
Description: PGP signature