]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: pse-pd: pd692x0: Skip power budget configuration when undefined
authorKory Maincent <kory.maincent@bootlin.com>
Wed, 20 Aug 2025 13:33:21 +0000 (15:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Aug 2025 14:56:08 +0000 (07:56 -0700)
commit7ef353879f714602b43f98662069f4fb86536761
tree99d2ba22a18e6760db9c30ab524a92acf3c32a26
parent1c67f9c54cdc70627e3f6472b89cd3d895df974c
net: pse-pd: pd692x0: Skip power budget configuration when undefined

If the power supply's power budget is not defined in the device tree,
the current code still requests power and configures the PSE manager
with a 0W power limit, which is undesirable behavior.

Skip power budget configuration entirely when the budget is zero,
avoiding unnecessary power requests and preventing invalid 0W limits
from being set on the PSE manager.

Fixes: 359754013e6a ("net: pse-pd: pd692x0: Add support for PSE PI priority feature")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20250820133321.841054-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/pd692x0.c