Hi Kory, On Thu, Nov 21, 2024 at 03:42:29PM +0100, Kory Maincent wrote: > From: Kory Maincent (Dent Project) <kory.maincent@xxxxxxxxxxx> > > Setting the max_uA constraint in the regulator API imposes a current > limit during the regulator registration process. This behavior conflicts > with preserving the maximum PI power budget configuration across reboots. > > Instead, compare the desired current limit to MAX_PI_CURRENT in the > pse_pi_set_current_limit() function to ensure proper handling of the > power budget. Not enough coffee :) I still didn't correctly understood the problem. MAX_PI_CURRENT is the hard limit according to the standard, so it is the intial limit anyway. Why it is bad to set it on registration? It feels still better compared to have no limit on init. Or do i'm missing things? Regards, Oleksij -- 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 |