summaryrefslogtreecommitdiffstats
path: root/kernel/net/dsa/slave.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/dsa/slave.c')
-rw-r--r--kernel/net/dsa/slave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/net/dsa/slave.c b/kernel/net/dsa/slave.c
index 7bc787b09..8dfe9fb7a 100644
--- a/kernel/net/dsa/slave.c
+++ b/kernel/net/dsa/slave.c
@@ -1101,6 +1101,8 @@ int dsa_slave_suspend(struct net_device *slave_dev)
{
struct dsa_slave_priv *p = netdev_priv(slave_dev);
+ netif_device_detach(slave_dev);
+
if (p->phy) {
phy_stop(p->phy);
p->old_pause = -1;