Re: [PATCH RFC net-next v3 16/27] regulator: Add support for power budget description
From: Oleksij Rempel
Date: Sun Nov 24 2024 - 04:46:25 EST
On Thu, Nov 21, 2024 at 03:42:42PM +0100, Kory Maincent wrote:
> From: Kory Maincent (Dent Project) <kory.maincent@xxxxxxxxxxx>
>
> In preparation for future support of PSE port priority and power
> management, we need the power budget value of the power supply.
> This addition allows the regulator to track the available power
> capacity, which will be essential for prioritizing ports when
> making power allocation decisions.
>
> Signed-off-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>
> --- a/include/linux/regulator/machine.h
> +++ b/include/linux/regulator/machine.h
> @@ -113,6 +113,7 @@ struct notification_limit {
> * @min_uA: Smallest current consumers may set.
> * @max_uA: Largest current consumers may set.
> * @ilim_uA: Maximum input current.
> + * @pw_budget: Power budget for the regulator in mW.
> * @system_load: Load that isn't captured by any consumer requests.
> *
> * @over_curr_limits: Limits for acting on over current.
> @@ -185,6 +186,7 @@ struct regulation_constraints {
> int max_uA;
> int ilim_uA;
>
> + int pw_budget;
Unit name is missing. Should be: pw_budget_mW or something like this.
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |