mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00:00
This reverts commit2566a89b9ewhich is commita2614140dcupstream. The above change depends on upstream commit0faf890fc5("net: dsa: drop rtnl_lock from dsa_slave_switchdev_event_work"), which is not present in linux-5.15.y. Without that change, waiting for the switchdev workqueue causes deadlocks on the rtnl_mutex. Backporting the dependency commit isn't trivial/desirable, since it requires that the following dependencies of the dependency are also backported:df405910abnet: dsa: sja1105: wait for dynamic config command completion on writes tooeb016afd83net: dsa: sja1105: serialize access to the dynamic config interface2468346c56net: mscc: ocelot: serialize access to the MAC tablef7eb4a1c08net: dsa: b53: serialize access to the ARL tablecf231b436fnet: dsa: lantiq_gswip: serialize access to the PCE registers338a3a4745net: dsa: introduce locking for the address lists on CPU and DSA ports and then this bugfix on top:8940e6b669("net: dsa: avoid call to __dev_set_promiscuity() while rtnl_mutex isn't held") Reported-by: Daniel Suchy <danny@danysek.cz> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>