diff options
author | 2024-04-17 16:39:57 +0200 | |
---|---|---|
committer | 2024-04-18 18:27:39 -0700 | |
commit | 29e28d1d7a16a3f6dba55c1df5cc6e0f9edf3017 (patch) | |
tree | 00f24e83d3a3583025a3d767dae3172fc15fafb5 /include | |
parent | dt-bindings: net: pse-pd: Add another way of describing several PSE PIs (diff) | |
download | linux-29e28d1d7a16a3f6dba55c1df5cc6e0f9edf3017.tar.gz linux-29e28d1d7a16a3f6dba55c1df5cc6e0f9edf3017.tar.bz2 linux-29e28d1d7a16a3f6dba55c1df5cc6e0f9edf3017.zip |
net: pse-pd: Add support for setup_pi_matrix callback
Implement setup_pi_matrix callback to configure the PSE PI matrix. This
functionality is invoked before registering the PSE and following the core
parsing of the pse_pis devicetree subnode.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240417-feature_poe-v9-9-242293fd1900@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pse-pd/pse.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pse-pd/pse.h b/include/linux/pse-pd/pse.h index e19d58b5e777..fa0c73da0cf1 100644 --- a/include/linux/pse-pd/pse.h +++ b/include/linux/pse-pd/pse.h @@ -49,6 +49,7 @@ struct pse_control_status { * * @ethtool_get_status: get PSE control status for ethtool interface * @ethtool_set_config: set PSE control configuration over ethtool interface + * @setup_pi_matrix: setup PI matrix of the PSE controller */ struct pse_controller_ops { int (*ethtool_get_status)(struct pse_controller_dev *pcdev, @@ -57,6 +58,7 @@ struct pse_controller_ops { int (*ethtool_set_config)(struct pse_controller_dev *pcdev, unsigned long id, struct netlink_ext_ack *extack, const struct pse_control_config *config); + int (*setup_pi_matrix)(struct pse_controller_dev *pcdev); }; struct module; |