diff options
author | David S. Miller <davem@davemloft.net> | 2017-01-28 10:33:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-28 10:33:06 -0500 |
commit | 4e8f2fc1a55d543717efb70e170b09e773d0542b (patch) | |
tree | 30df1d7fc9dfa24fe2916711a17656682c3f7ec9 /net/dsa/slave.c | |
parent | 158f323b9868b59967ad96957c4ca388161be321 (diff) | |
parent | 1b1bc42c1692e9b62756323c675a44cb1a1f9dbd (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Two trivial overlapping changes conflicts in MPLS and mlx5.
Signed-off-by: David S. Miller <davem@davemloft.net>
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 b8e58689a9a1..9750dd6f8c17 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -1116,10 +1116,8 @@ static int dsa_slave_phy_connect(struct dsa_slave_priv *p, | |||
1116 | /* Use already configured phy mode */ | 1116 | /* Use already configured phy mode */ |
1117 | if (p->phy_interface == PHY_INTERFACE_MODE_NA) | 1117 | if (p->phy_interface == PHY_INTERFACE_MODE_NA) |
1118 | p->phy_interface = p->phy->interface; | 1118 | p->phy_interface = p->phy->interface; |
1119 | phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, | 1119 | return phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, |
1120 | p->phy_interface); | 1120 | p->phy_interface); |
1121 | |||
1122 | return 0; | ||
1123 | } | 1121 | } |
1124 | 1122 | ||
1125 | static int dsa_slave_phy_setup(struct dsa_slave_priv *p, | 1123 | static int dsa_slave_phy_setup(struct dsa_slave_priv *p, |
@@ -1214,6 +1212,8 @@ int dsa_slave_suspend(struct net_device *slave_dev) | |||
1214 | { | 1212 | { |
1215 | struct dsa_slave_priv *p = netdev_priv(slave_dev); | 1213 | struct dsa_slave_priv *p = netdev_priv(slave_dev); |
1216 | 1214 | ||
1215 | netif_device_detach(slave_dev); | ||
1216 | |||
1217 | if (p->phy) { | 1217 | if (p->phy) { |
1218 | phy_stop(p->phy); | 1218 | phy_stop(p->phy); |
1219 | p->old_pause = -1; | 1219 | p->old_pause = -1; |