On Tue, 12 Jan 2021 10:51:39 -0800 Florian Fainelli wrote: > On 1/11/21 3:09 PM, Vladimir Oltean wrote: > > From: Vladimir Oltean <vladimir.olt...@nxp.com> > > > > Currently the following happens when a DSA master driver unbinds while > > there are DSA switches attached to it: > > > > $ echo 0000:00:00.5 > /sys/bus/pci/drivers/mscc_felix/unbind > > ------------[ cut here ]------------ > > WARNING: CPU: 0 PID: 392 at net/core/dev.c:9507 > > Call trace: > > rollback_registered_many+0x5fc/0x688 > > unregister_netdevice_queue+0x98/0x120 > > dsa_slave_destroy+0x4c/0x88 > > dsa_port_teardown.part.16+0x78/0xb0 > > dsa_tree_teardown_switches+0x58/0xc0 > > dsa_unregister_switch+0x104/0x1b8 > > felix_pci_remove+0x24/0x48 > > pci_device_remove+0x48/0xf0 > > device_release_driver_internal+0x118/0x1e8 > > device_driver_detach+0x28/0x38 > > unbind_store+0xd0/0x100 > > [...] > > > > Fixes: 2f1e8ea726e9 ("net: dsa: link interfaces with the DSA master to get > > rid of lockdep warnings") > > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> > > Reviewed-by: Florian Fainelli <f.faine...@gmail.com> > Tested-by: Florian Fainelli <f.faine...@gmail.com>
Applied, thanks!