regulator: Implement uv_survival_time for handling under-voltage events
authorOleksij Rempel <o.rempel@pengutronix.de>
Thu, 26 Oct 2023 14:48:24 +0000 (16:48 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Nov 2023 01:26:28 +0000 (01:26 +0000)
commit1e22152aa59d793743fc53051dd7a042f362aecb
tree44090a81b836b7c09c3c193cd71d70aa3f0f6271
parent759e2bd96971763db1cfaf6cafc07654b12aa21e
regulator: Implement uv_survival_time for handling under-voltage events

Add 'uv_survival_time' field to regulation_constraints for specifying
survival time post critical under-voltage event. Update the regulator
notifier call chain and Device Tree property parsing to use this new
field, allowing a configurable timeout before emergency shutdown.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20231026144824.4065145-6-o.rempel@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/of_regulator.c
include/linux/regulator/machine.h