2017-12-21 11:13:30 +00:00
|
|
|
From 883dc66755313e133a787eba4dfde313fe33525b Mon Sep 17 00:00:00 2001
|
|
|
|
From: Russell King <rmk+kernel@armlinux.org.uk>
|
|
|
|
Date: Fri, 14 Apr 2017 16:41:55 +0100
|
|
|
|
Subject: sfp: use netdev sfp_bus for start/stop
|
|
|
|
|
|
|
|
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
|
|
|
|
---
|
|
|
|
drivers/net/phy/phylink.c | 8 ++++----
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/net/phy/phylink.c
|
|
|
|
+++ b/drivers/net/phy/phylink.c
|
2018-08-03 08:54:16 +00:00
|
|
|
@@ -757,8 +757,8 @@ void phylink_start(struct phylink *pl)
|
2017-12-21 11:13:30 +00:00
|
|
|
clear_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);
|
|
|
|
phylink_run_resolve(pl);
|
|
|
|
|
|
|
|
- if (pl->sfp_bus)
|
|
|
|
- sfp_upstream_start(pl->sfp_bus);
|
|
|
|
+ if (pl->netdev->sfp_bus)
|
|
|
|
+ sfp_upstream_start(pl->netdev->sfp_bus);
|
|
|
|
if (pl->phydev)
|
|
|
|
phy_start(pl->phydev);
|
|
|
|
}
|
2018-08-03 08:54:16 +00:00
|
|
|
@@ -770,8 +770,8 @@ void phylink_stop(struct phylink *pl)
|
2017-12-21 11:13:30 +00:00
|
|
|
|
|
|
|
if (pl->phydev)
|
|
|
|
phy_stop(pl->phydev);
|
|
|
|
- if (pl->sfp_bus)
|
|
|
|
- sfp_upstream_stop(pl->sfp_bus);
|
|
|
|
+ if (pl->netdev->sfp_bus)
|
|
|
|
+ sfp_upstream_stop(pl->netdev->sfp_bus);
|
|
|
|
|
|
|
|
set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);
|
2018-02-28 21:53:37 +00:00
|
|
|
queue_work(system_power_efficient_wq, &pl->resolve);
|