Skip to contentSkip to conversation

net: dsa: Bring back device detaching in dsa_slave_suspend()

PATCH In review Florian Fainelli 3 participants 3 messages Jan 25, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")

---
David,

Can you also queue this for -stable? Thanks!

 net/dsa/slave.c | 2 ++
 1 file changed, 2 insertions(+)
net/dsa/slave.c +2 -0
index 68c9eea00518..020a28d5c93e 100644
@@ -1203,6 +1203,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;
Signature · 1 line
2.9.3
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Florian Fainelli

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")

Sorry for accidentally removing it.

Andrew

maintainer
#2 lore raw
In reply to Florian Fainelli

From: Florian Fainelli <[email protected]>
Date: Wed, 25 Jan 2017 09:10:41 -0800

Quoted 11 lines

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")

---
David,

Can you also queue this for -stable? Thanks!

Applied and queued up for -stable, thanks.