]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: tps65219: Implement LOCK register handling for TPS65214
authorKory Maincent (TI.com) <kory.maincent@bootlin.com>
Thu, 18 Dec 2025 15:06:28 +0000 (16:06 +0100)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:21:12 +0000 (07:21 -0500)
commit89bdcd39ae8b1ffd7000897b30d152729b68d49d
tree88979b5f9d280b3f318ef707d68384b7ea9481c7
parent9b02e3fec3a7fcb990b4d3bd3b13d7edf123dca6
mfd: tps65219: Implement LOCK register handling for TPS65214

[ Upstream commit d3fcf276b501a82d4504fd5b1ed40249546530d1 ]

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
- Adding a custom regmap write function would add overhead to every
  register write, including voltage changes triggered by CPU OPP
  transitions from the cpufreq governor which could happen quite
  frequently

Cc: stable@vger.kernel.org
Fixes: 7947219ab1a2d ("mfd: tps65219: Add support for TI TPS65214 PMIC")
Reviewed-by: Andrew Davis <afd@ti.com>
Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20251218-fix_tps65219-v5-1-8bb511417f3a@bootlin.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/tps65219.c
include/linux/mfd/tps65219.h