]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:17 +0000 (04:30 -0800)
commit9a2e2b058162e0e87b960a59d52ce4299e92a74b
tree586afe7cb636926744ee3e9b89755475721adbd8
parent414ce1853b8dbe8712af56b6119aa472595640f4
net: pse-pd: Use power limit at driver side instead of current limit

[ Upstream commit e0a5e2bba38aa61a900934b45d6e846e0a6d7524 ]

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>
Stable-dep-of: f6093c5ec74d ("net: pse-pd: pd692x0: Fix power limit retrieval")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/pse-pd/pd692x0.c
drivers/net/pse-pd/pse_core.c
include/linux/pse-pd/pse.h