Re: [PATCH] regmap: do not call regmap_debugfs_init() from regmap_attach_dev()

From: Mark Brown
Date: Mon Jul 26 2021 - 08:00:25 EST


On Mon, Jul 26, 2021 at 09:36:27AM +0200, Matthias Schiffer wrote:

> lacking) understanding of the semantics aside, the fact that
> regmap_attach_dev() is setting fields on the shared regmap without any
> kind of locking is at least suspicious.

BTW there shouldn't be any harm in adding locking, but we're really
hoping that it shouldn't be required here as the caller ought to be
doing coordination which means things are single threaded anyway so we
didn't bother.

Attachment: signature.asc
Description: PGP signature