[PATCH v2 2/2] regmap: Drop map lock during cache init and exit
Mark Brown
broonie at kernel.org
Mon Oct 5 05:03:10 PDT 2026
On Sun, Oct 04, 2026 at 11:38:43PM +1100, Michael Reeves via B4 Relay wrote:
> From: Michael Reeves <michael.reeves077 at gmail.com>
>
> On systems with CONFIG_PROVE_RAW_LOCK_NESTING enabled, Apple GPIO probe
> triggers an "Invalid wait context" lockdep warning.
> - mas_lock(&mas);
> + spin_lock_irqsave(&mt->ma_lock, flags);
I think this needs at least a comment explaining why we're not using
mas_lock(), otherwise people will try to change to using mas_lock()
since there's no obvious reason we need to exclude interrupts and we're
peering inside the maple tree internals.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/maple-tree/attachments/20261005/98ce38ed/attachment.sig>
More information about the maple-tree
mailing list