From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C7CD14287 for ; Sun, 24 Nov 2024 09:46:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732441578; cv=none; b=J8MTaFI6FyICfY93bxj2GBI3qZT1ttG07AzkZQRs/ltZBzLTELZ2ksgHj3tm5g7FEjQesUzmJk4Rhps46YI3o7+W6BQx52tr4KbVC3dJS9yjiKPD/dwovuTkwgddVFIlNsVSBxW6LD0HxjxzFBhWbhwDonYPOg1ClyvrIvpySs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732441578; c=relaxed/simple; bh=5GU7qhaMTvf8fRlEAEVLODsQuOdk3sPR6jj5PV23Mp0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h7UmtW91zGs2g1KKlKwU2jV3LdQxWGds2CdZ3p5YKaR4lI098Eu1KY07OVK2aOKugBxLIQSJ5KWAS+4tsEWNdVGw5UdXhGVLzp/beIEPL/ghPpAmJRXxZp/7TQtbSgeZWBQ9bAjtdbcecM34FsyfUkcr5CnEQ4h+50K0rFSM6ik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tF9Bt-0005s8-Rx; Sun, 24 Nov 2024 10:46:05 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tF9Bt-002NCv-1i; Sun, 24 Nov 2024 10:46:05 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tF9Bt-00CgTk-1J; Sun, 24 Nov 2024 10:46:05 +0100 Date: Sun, 24 Nov 2024 10:46:05 +0100 From: Oleksij Rempel To: Kory Maincent Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Donald Hunter , Rob Herring , Andrew Lunn , Simon Horman , Heiner Kallweit , Russell King , Liam Girdwood , Mark Brown , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Kyle Swenson , Dent Project , kernel@pengutronix.de, Maxime Chevallier Subject: Re: [PATCH RFC net-next v3 16/27] regulator: Add support for power budget description Message-ID: References: <20241121-feature_poe_port_prio-v3-0-83299fa6967c@bootlin.com> <20241121-feature_poe_port_prio-v3-16-83299fa6967c@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20241121-feature_poe_port_prio-v3-16-83299fa6967c@bootlin.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org On Thu, Nov 21, 2024 at 03:42:42PM +0100, Kory Maincent wrote: > From: Kory Maincent (Dent Project) > > 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 > --- 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 |