diff options
author | Russell King <linux@armlinux.org.uk> | 2024-09-06 13:35:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-09-11 13:06:11 +0300 |
commit | 4b3fc475c61fa8733a9acc9d743f6cc9ca4915f5 (patch) | |
tree | bcd012c2a21f08fbf95f7550fee5337ff3538936 /include | |
parent | f3b6129b7d252b2fbdcac2e0005abc6804dc287c (diff) | |
download | linux-4b3fc475c61fa8733a9acc9d743f6cc9ca4915f5.tar.xz |
net: phylink: Add phylink_set_fixed_link() to configure fixed link state in phylink
The function allows for the configuration of a fixed link state for a given
phylink instance. This addition is particularly useful for network devices that
operate with a fixed link configuration, where the link parameters do not change
dynamically. By using `phylink_set_fixed_link()`, drivers can easily set up
the fixed link state during initialization or configuration changes.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phylink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 2381e07429a2..5c01048860c4 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -598,6 +598,8 @@ int phylink_fwnode_phy_connect(struct phylink *pl, const struct fwnode_handle *fwnode, u32 flags); void phylink_disconnect_phy(struct phylink *); +int phylink_set_fixed_link(struct phylink *, + const struct phylink_link_state *); void phylink_mac_change(struct phylink *, bool up); void phylink_pcs_change(struct phylink_pcs *, bool up); |