aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/netlink/specs
diff options
context:
space:
mode:
authorKory Maincent (Dent Project) <kory.maincent@bootlin.com>2025-06-17 14:12:01 +0200
committerJakub Kicinski <kuba@kernel.org>2025-06-18 19:00:15 -0700
commitfc0e6db30941a66e284b8516b82356f97f31061d (patch)
tree5de4cec213bc867712892ef2bd9ee160669424eb /Documentation/netlink/specs
parentnet: pse-pd: Introduce attached_phydev to pse control (diff)
downloadwireguard-linux-fc0e6db30941a66e284b8516b82356f97f31061d.tar.xz
wireguard-linux-fc0e6db30941a66e284b8516b82356f97f31061d.zip
net: pse-pd: Add support for reporting events
Add support for devm_pse_irq_helper() to register PSE interrupts and report events such as over-current or over-temperature conditions. This follows a similar approach to the regulator API but also sends notifications using a dedicated PSE ethtool netlink socket. Signed-off-by: Kory Maincent (Dent Project) <kory.maincent@bootlin.com> Link: https://patch.msgid.link/20250617-feature_poe_port_prio-v14-2-78a1a645e2ee@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/netlink/specs')
-rw-r--r--Documentation/netlink/specs/ethtool.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml
index ed9bcdec01cc..92b34a19f308 100644
--- a/Documentation/netlink/specs/ethtool.yaml
+++ b/Documentation/netlink/specs/ethtool.yaml
@@ -118,6 +118,17 @@ definitions:
doc: |
Hardware timestamp comes from one PHY device
of the network topology
+ -
+ name: pse-event
+ doc: PSE event list for the PSE controller
+ type: flags
+ entries:
+ -
+ name: over-current
+ doc: PSE output current is too high
+ -
+ name: over-temp
+ doc: PSE in over temperature state
attribute-sets:
-
@@ -1555,6 +1566,19 @@ attribute-sets:
name: hwtstamp-flags
type: nest
nested-attributes: bitset
+ -
+ name: pse-ntf
+ attr-cnt-name: --ethtool-a-pse-ntf-cnt
+ attributes:
+ -
+ name: header
+ type: nest
+ nested-attributes: header
+ -
+ name: events
+ type: uint
+ enum: pse-event
+ doc: List of events reported by the PSE controller
operations:
enum-model: directional
@@ -2413,3 +2437,13 @@ operations:
attributes: *tsconfig
reply:
attributes: *tsconfig
+ -
+ name: pse-ntf
+ doc: Notification for PSE events.
+
+ attribute-set: pse-ntf
+
+ event:
+ attributes:
+ - header
+ - events