Re: [PATCH v4 1/2] mfd: tps65219: Implement LOCK register handling for TPS65214
From: Kory Maincent
Date: Thu Nov 13 2025 - 04:42:24 EST
On Wed, 12 Nov 2025 13:03:22 -0600
Andrew Davis <afd@xxxxxx> wrote:
> On 11/12/25 9:14 AM, Kory Maincent (TI.com) wrote:
> > The TPS65214 PMIC variant has a LOCK_REG register that prevents writes to
> > nearly all registers when locked. Unlock the registers at probe time and
> > leave them unlocked permanently.
> >
> > This approach is justified because:
> > - Register locking is very uncommon in typical system operation
> > - No code path is expected to lock the registers during runtime
>
> Any other entity in the system that could re-lock these registers?
> How about low power modes or other PM handling?
No there is no reason to re-lock these registers. It will be locked again only
if the PMIC is reset.
In any case, if one case appears that needs to lock these register (even
if I think it is unlikely) we could come back to the regmap custom write
design.
Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com