Re: [PATCH v2 2/2] regmap: Drop map lock during cache init and exit
From: Mark Brown
Date: Mon Oct 05 2026 - 08:05:05 EST
On Sun, Oct 04, 2026 at 11:38:43PM +1100, Michael Reeves via B4 Relay wrote:
> From: Michael Reeves <michael.reeves077@xxxxxxxxx>
>
> 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.
Attachment:
signature.asc
Description: PGP signature