]> www.infradead.org Git - users/hch/misc.git/commit
net: pse-pd: Use power limit at driver side instead of current limit
authorKory Maincent <kory.maincent@bootlin.com>
Fri, 10 Jan 2025 09:40:26 +0000 (10:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Jan 2025 12:56:32 +0000 (13:56 +0100)
commite0a5e2bba38aa61a900934b45d6e846e0a6d7524
tree4463ddf5e9b33598138af978cb2c84166d50fc17
parentf3cb3c7bea0c08e821d8e9dfd2f96acd1db7c24e
net: pse-pd: Use power limit at driver side instead of current limit

The regulator framework uses current limits, but the PSE standard and
known PSE controllers rely on power limits. Instead of converting
current to power within each driver, perform the conversion in the PSE
core. This avoids redundancy in driver implementation and aligns better
with the standard, simplifying driver development.

Remove at the same time the _pse_ethtool_get_status() function which is
not needed anymore.

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/pd692x0.c
drivers/net/pse-pd/pse_core.c
include/linux/pse-pd/pse.h