]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: pse-pd: Add power limit check
authorKory Maincent <kory.maincent@bootlin.com>
Fri, 10 Jan 2025 09:40:22 +0000 (10:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Jan 2025 12:56:32 +0000 (13:56 +0100)
commit6e56a6d47a7fad705a1a1d088237b0858c01a770
treefd89334dfed07fc2b91efdb9b44bce5bb9535328
parent675d0e3cacc3ae7c29294a5f6a820187f862ad8b
net: pse-pd: Add power limit check

Checking only the current limit is not sufficient. According to the
standard, voltage can reach up to 57V and current up to 1.92A, which
exceeds the power limit described in the standard (99.9W). Add a power
limit check to prevent this.

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
include/linux/pse-pd/pse.h