net: pse-pd: Introduce PSE types enumeration
authorKory Maincent (Dent Project) <kory.maincent@bootlin.com>
Wed, 17 Apr 2024 14:39:50 +0000 (16:39 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Apr 2024 01:27:01 +0000 (18:27 -0700)
commit47e0dd53c5eb9dab66689592523f31ea39fc32fa
tree28a3c319823cddebdbdec9f6aad26b0958eaeb87
parentb58be8db6327b21e0c7fbee559b8eb47f5110efe
net: pse-pd: Introduce PSE types enumeration

Introduce an enumeration to define PSE types (C33 or PoDL),
utilizing a bitfield for potential future support of both types.
Include 'pse_get_types' helper for external access to PSE type info.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://lore.kernel.org/r/20240417-feature_poe-v9-2-242293fd1900@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/pse_core.c
drivers/net/pse-pd/pse_regulator.c
include/linux/pse-pd/pse.h
include/uapi/linux/ethtool.h