diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-26 15:34:42 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-26 15:34:42 -0500 |
commit | 8e22e1b3499a446df48c2b26667ca36c55bf864c (patch) | |
tree | 5329f98b3eb3c95a9dcbab0fa4f9b6e62f0e788d /net/dsa/slave.c | |
parent | 00d3c14f14d51babd8aeafd5fa734ccf04f5ca3d (diff) | |
parent | 64a577196d66b44e37384bc5c4d78c61f59d5b2a (diff) |
Merge airlied/drm-next into drm-misc-next
Backmerge the main pull request to sync up with all the newly landed
drivers. Otherwise we'll have chaos even before 4.12 started in
earnest.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 68c9eea00518..7d4596110851 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -1105,10 +1105,8 @@ static int dsa_slave_phy_connect(struct dsa_slave_priv *p, | |||
1105 | /* Use already configured phy mode */ | 1105 | /* Use already configured phy mode */ |
1106 | if (p->phy_interface == PHY_INTERFACE_MODE_NA) | 1106 | if (p->phy_interface == PHY_INTERFACE_MODE_NA) |
1107 | p->phy_interface = p->phy->interface; | 1107 | p->phy_interface = p->phy->interface; |
1108 | phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, | 1108 | return phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, |
1109 | p->phy_interface); | 1109 | p->phy_interface); |
1110 | |||
1111 | return 0; | ||
1112 | } | 1110 | } |
1113 | 1111 | ||
1114 | static int dsa_slave_phy_setup(struct dsa_slave_priv *p, | 1112 | static int dsa_slave_phy_setup(struct dsa_slave_priv *p, |
@@ -1203,6 +1201,8 @@ int dsa_slave_suspend(struct net_device *slave_dev) | |||
1203 | { | 1201 | { |
1204 | struct dsa_slave_priv *p = netdev_priv(slave_dev); | 1202 | struct dsa_slave_priv *p = netdev_priv(slave_dev); |
1205 | 1203 | ||
1204 | netif_device_detach(slave_dev); | ||
1205 | |||
1206 | if (p->phy) { | 1206 | if (p->phy) { |
1207 | phy_stop(p->phy); | 1207 | phy_stop(p->phy); |
1208 | p->old_pause = -1; | 1208 | p->old_pause = -1; |