diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-05-17 11:38:12 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-05-18 19:52:31 -0700 |
commit | dc18582211b34bce8250ddf3cac2a2230e192120 (patch) | |
tree | d54b7d06c83fada4f9275feaa09cf6462ed1d724 /include | |
parent | 1974fd3bf0f04589dea1a4a76273bbc8fd5760f6 (diff) | |
download | lwn-dc18582211b34bce8250ddf3cac2a2230e192120.tar.gz lwn-dc18582211b34bce8250ddf3cac2a2230e192120.zip |
net: sfp: add support for setting signalling rate
Add support to the SFP layer to allow phylink to set the signalling
rate for a SFP module. The rate given will be in units of kilo-baud
(1000 baud).
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sfp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sfp.h b/include/linux/sfp.h index ef06a195b3c2..2f66e03e9dbd 100644 --- a/include/linux/sfp.h +++ b/include/linux/sfp.h @@ -556,6 +556,7 @@ int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, struct netlink_ext_ack *extack); void sfp_upstream_start(struct sfp_bus *bus); void sfp_upstream_stop(struct sfp_bus *bus); +void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd); void sfp_bus_put(struct sfp_bus *bus); struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode); int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream, @@ -615,6 +616,11 @@ static inline void sfp_upstream_stop(struct sfp_bus *bus) { } +static inline void sfp_upstream_set_signal_rate(struct sfp_bus *bus, + unsigned int rate_kbd) +{ +} + static inline void sfp_bus_put(struct sfp_bus *bus) { } |