]> www.infradead.org Git - nvme.git/commit
net: pse-pd: pd692x0: Enhance with new current limit and voltage read callbacks
authorKory Maincent (Dent Project) <kory.maincent@bootlin.com>
Thu, 4 Jul 2024 08:12:02 +0000 (10:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Jul 2024 01:30:01 +0000 (18:30 -0700)
commita87e699c9d3315f2253626c8c66e75dec1e551b7
tree16f8cee3ed67c285d75bc97fa9907f22d9a0842d
parentdac3de193095a0cb579e5d31c237e3e447e4a9b6
net: pse-pd: pd692x0: Enhance with new current limit and voltage read callbacks

This patch expands PSE callbacks with newly introduced
pi_get/set_current_limit() and pi_get_voltage() callback.
It also add the power limit ranges description in the status returned.
The only way to set ps692x0 port power limit is by configure the power
class plus a small power supplement which maximum depends on each class.

Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20240704-feature_poe_power_cap-v6-7-320003204264@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/pd692x0.c