]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Bring back device detaching in dsa_slave_suspend()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Jan 2017 17:10:41 +0000 (09:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2017 19:47:44 +0000 (14:47 -0500)
commitbcd0ae82fd9ba3a575cc671174392d1305efd2c3
tree7c3ddfb7c862db25da5e61124fb446c0c526861a
parent8330a3c96f14b61c0e41534e8e0a609f11630210
net: dsa: Bring back device detaching in dsa_slave_suspend()

Commit c1e5feeb6456 ("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: c1e5feeb6456 ("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>
net/dsa/slave.c