diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2024-08-21 17:09:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-23 13:04:34 +0100 |
commit | 4d76f115ab9121f4458330da962ae9ef5430e60b (patch) | |
tree | 1ec6febcda7e336c2340ff18430bd2ad5923898b /include/linux/sfp.h | |
parent | 3849687869092094003ba009dc00e2e0237a3b8a (diff) | |
download | linux-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.h | 2 |
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) |