summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/sfp.h
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2023-05-17 12:38:12 +0200
committerJakub Kicinski <kuba@kernel.org>2023-05-19 04:52:31 +0200
commitdc18582211b34bce8250ddf3cac2a2230e192120 (patch)
treed54b7d06c83fada4f9275feaa09cf6462ed1d724 /drivers/net/phy/sfp.h
parentnet: sfp: change st_mutex locking (diff)
downloadlinux-dc18582211b34bce8250ddf3cac2a2230e192120.tar.xz
linux-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 'drivers/net/phy/sfp.h')
-rw-r--r--drivers/net/phy/sfp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/sfp.h b/drivers/net/phy/sfp.h
index 6cf1643214d3..c7cb50d10099 100644
--- a/drivers/net/phy/sfp.h
+++ b/drivers/net/phy/sfp.h
@@ -19,6 +19,7 @@ struct sfp_socket_ops {
void (*detach)(struct sfp *sfp);
void (*start)(struct sfp *sfp);
void (*stop)(struct sfp *sfp);
+ void (*set_signal_rate)(struct sfp *sfp, unsigned int rate_kbd);
int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
u8 *data);