Re: [PATCH] regulator: core: Add option to prevent disabling unused regulators

From: Brian Masney
Date: Mon Oct 30 2023 - 10:54:45 EST


On Sat, Oct 28, 2023 at 12:24:03PM +0200, Javier Martinez Canillas wrote:
> 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@xxxxxxxxxx>

Thanks for posting this! I've had a need for this. With Randy's feedback
addressed:

Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>