Skip to content

Commit 384e4bf

Browse files
ffainelligregkh
authored andcommitted
net: dsa: Bring back device detaching in dsa_slave_suspend()
[ Upstream commit f154be241d22298d2b63c9b613f619fa1086ea75 ] Commit 448b448 ("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: 448b448 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 74a7c39 commit 384e4bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/dsa/slave.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,8 @@ int dsa_slave_suspend(struct net_device *slave_dev)
11011101
{
11021102
struct dsa_slave_priv *p = netdev_priv(slave_dev);
11031103

1104+
netif_device_detach(slave_dev);
1105+
11041106
if (p->phy) {
11051107
phy_stop(p->phy);
11061108
p->old_pause = -1;

0 commit comments

Comments
 (0)