diff options
| author | Maxime Chevallier <[email protected]> | 2024-08-21 17:09:56 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-08-23 13:04:34 +0100 |
| commit | 4d76f115ab9121f4458330da962ae9ef5430e60b (patch) | |
| tree | 1ec6febcda7e336c2340ff18430bd2ad5923898b /include/linux | |
| parent | 3849687869092094003ba009dc00e2e0237a3b8a (diff) | |
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 <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Tested-by: Christophe Leroy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
| -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) |