regulator: core: Add option to prevent disabling unused regulators
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 7 Nov 2023 19:09:18 +0000 (20:09 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Nov 2023 01:26:29 +0000 (01:26 +0000)
commitc986968fe92f20f2db26fa6bce27795b2e9ebe22
tree3c852a5df7efd059a964b48af8a464d28a8bd008
parentb85ea95d086471afb4ad062012a4d73cd328fa86
regulator: core: Add option to prevent disabling unused regulators

This may be useful for debugging and develompent purposes, when there are
drivers that depend on regulators to be enabled but do not request them.

It is inspired from the clk_ignore_unused and pd_ignore_unused parameters,
that are used to keep firmware-enabled clocks and power domains on even if
these are not used by drivers.

The parameter is not expected to be used in normal cases and should not be
needed on a platform with proper driver support.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20231107190926.1185326-1-javierm@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
drivers/regulator/core.c