diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2023-12-21 19:00:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-01-01 18:38:56 +0000 |
commit | 9c5625f559ad6fe9f6f733c11475bf470e637d34 (patch) | |
tree | 1e470f25c2084ab7add4f9a9878dcfa8e4107a6d /drivers/net/phy/phylink.c | |
parent | 02018c544ef113e980a2349eba89003d6f399d22 (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 <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phylink.c')
-rw-r--r-- | drivers/net/phy/phylink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 298dfd6982a5..3d25a4a6212b 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -3319,7 +3319,8 @@ static int phylink_sfp_connect_phy(void *upstream, struct phy_device *phy) return ret; } -static void phylink_sfp_disconnect_phy(void *upstream) +static void phylink_sfp_disconnect_phy(void *upstream, + struct phy_device *phydev) { phylink_disconnect_phy(upstream); } |