]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: pse-pd: Add helper to report hardware enable status of the PI
authorKory Maincent (Dent Project) <kory.maincent@bootlin.com>
Tue, 17 Jun 2025 12:12:05 +0000 (14:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 02:00:17 +0000 (19:00 -0700)
commitc394e757dedd9cf947f9ac470d615d28fd2b07d1
treecbb88a8e2fa9333315fa95c853772f36771fb52f
parent1176978ed851952652ddea3685e2f71a0e5d61ff
net: pse-pd: Add helper to report hardware enable status of the PI

Refactor code by introducing a helper function to retrieve the hardware
enabled state of the PI, avoiding redundant implementations in the
future.

Signed-off-by: Kory Maincent (Dent Project) <kory.maincent@bootlin.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20250617-feature_poe_port_prio-v14-6-78a1a645e2ee@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/pse_core.c