diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2024-04-04 11:29:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-06 18:25:14 +0100 |
commit | 0ec5ed6c130e3906ba4ec82d740444a21504fbbf (patch) | |
tree | 1019bedb21e7fbb321a3738a360c96fdc565d4a3 /include | |
parent | 6916e461e7933d3d003441291c543938f2ccb371 (diff) | |
download | linux-stable-0ec5ed6c130e3906ba4ec82d740444a21504fbbf.tar.gz linux-stable-0ec5ed6c130e3906ba4ec82d740444a21504fbbf.tar.bz2 linux-stable-0ec5ed6c130e3906ba4ec82d740444a21504fbbf.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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-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 9346cd44814d..0573e53b0c11 100644 --- a/include/linux/sfp.h +++ b/include/linux/sfp.h @@ -544,7 +544,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) |