diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-25 09:10:41 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-25 14:47:44 -0500 |
commit | f154be241d22298d2b63c9b613f619fa1086ea75 (patch) | |
tree | 7c3ddfb7c862db25da5e61124fb446c0c526861a | |
parent | d5bdc021ecc8b273259a02ff83ab13b2de9b9717 (diff) | |
download | linux-f154be241d22298d2b63c9b613f619fa1086ea75.tar.gz linux-f154be241d22298d2b63c9b613f619fa1086ea75.tar.bz2 linux-f154be241d22298d2b63c9b613f619fa1086ea75.zip |
net: dsa: Bring back device detaching in dsa_slave_suspend()
Commit 448b4482c671 ("net: dsa: Add lockdep class to tx queues to avoid
lockdep splat") removed the netif_device_detach() call done in
dsa_slave_suspend() which is necessary, and paired with a corresponding
netif_device_attach(), bring it back.
Fixes: 448b4482c671 ("net: dsa: Add lockdep class to tx queues to avoid lockdep splat")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index ba1b6b9630d2..7d4596110851 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1201,6 +1201,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; |