summaryrefslogtreecommitdiffstats
path: root/include/linux/sfp.h
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2024-08-21 17:09:56 +0200
committerDavid S. Miller <davem@davemloft.net>2024-08-23 13:04:34 +0100
commit4d76f115ab9121f4458330da962ae9ef5430e60b (patch)
tree1ec6febcda7e336c2340ff18430bd2ad5923898b /include/linux/sfp.h
parent3849687869092094003ba009dc00e2e0237a3b8a (diff)
downloadlinux-stable-4d76f115ab9121f4458330da962ae9ef5430e60b.tar.gz
linux-stable-4d76f115ab9121f4458330da962ae9ef5430e60b.tar.bz2
linux-stable-4d76f115ab9121f4458330da962ae9ef5430e60b.zip
net: sfp: pass the phy_device when disconnecting an sfp module's PHY
Pass the phy_device as a parameter to the sfp upstream .disconnect_phy operation. This is preparatory work to help track phy devices across a net_device's link. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Tested-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sfp.h')
-rw-r--r--include/linux/sfp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sfp.h b/include/linux/sfp.h
index b14be59550e3..54abb4d22b2e 100644
--- a/include/linux/sfp.h
+++ b/include/linux/sfp.h
@@ -550,7 +550,7 @@ struct sfp_upstream_ops {
void (*link_down)(void *priv);
void (*link_up)(void *priv);
int (*connect_phy)(void *priv, struct phy_device *);
- void (*disconnect_phy)(void *priv);
+ void (*disconnect_phy)(void *priv, struct phy_device *);
};
#if IS_ENABLED(CONFIG_SFP)