]> www.infradead.org Git - users/hch/misc.git/commit
net: pse-pd: Avoid setting max_uA in regulator constraints
authorKory Maincent <kory.maincent@bootlin.com>
Fri, 10 Jan 2025 09:40:21 +0000 (10:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Jan 2025 12:56:32 +0000 (13:56 +0100)
commit675d0e3cacc3ae7c29294a5f6a820187f862ad8b
tree61ac8ac5b63d7f65d76c8203b9bbeada3946a067
parent514dcf78afe6b99fba5e885be295356856dd424b
net: pse-pd: Avoid setting max_uA in regulator constraints

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.

Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/pse-pd/pse_core.c